public function balance(array $balance)
    {
        foreach ($balance as $queue => $scale) {
            $this->processPools->first(function ($pool) use ($queue) {
                return $pool->queue() === $queue;
            }, new class {
                public function __call($method, $arguments)
                {
                }
            })->scale($scale);
        }
    }
public function balance(array $balance)
    {
        foreach ($balance as $queue => $scale) {
            $this->processPools->first(function ($pool) use ($queue) {
                return $pool->queue() === $queue;
            }, new class {
                public function __call($method, $arguments)
                {
                }
            })->scale($scale);
        }
    }
public function balance ( array $ balance ) { foreach ( $ balance as $ queue => $ scale ) { $ this -> processPools -> first ( function ( $ pool ) use ( $ queue ) { return $ pool -> queue ( ) === $ queue ; } , new class { public function __call ( $ method , $ arguments ) { } } ) -> scale ( $ scale ) ; } }
Balance the process pool at the given scales.

@param  array  $balance
@return void
Balance the process pool at the given scales .