public function start()
    {
        if ($this->isRunning()) {
            throw new StatusError('The worker pool has already been started.');
        }

        // Start up the pool with the minimum number of workers.
        $count = $this->minSize;
        while (--$count >= 0) {
            $worker = $this->createWorker();
            $this->idleWorkers->enqueue($worker);
        }

        $this->running = true;
    }
public function start()
    {
        if ($this->isRunning()) {
            throw new StatusError('The worker pool has already been started.');
        }

        // Start up the pool with the minimum number of workers.
        $count = $this->minSize;
        while (--$count >= 0) {
            $worker = $this->createWorker();
            $this->idleWorkers->enqueue($worker);
        }

        $this->running = true;
    }
public function start ( ) { if ( $ this -> isRunning ( ) ) { throw new StatusError ( 'The worker pool has already been started.' ) ; } // Start up the pool with the minimum number of workers. $ count = $ this -> minSize ; while ( -- $ count >= 0 ) { $ worker = $ this -> createWorker ( ) ; $ this -> idleWorkers -> enqueue ( $ worker ) ; } $ this -> running = true ; }
Starts the worker pool execution.

When the worker pool starts up, the minimum number of workers will be created. This adds some overhead to
starting the pool, but allows for greater performance during runtime.
Starts the worker pool execution .