Icicle\Concurrent\Worker\DefaultPool::createWorker PHP Method

createWorker() private method

Creates a worker and adds them to the pool.
private createWorker ( ) : Worker
return Worker The worker created.
    private function createWorker()
    {
        $worker = $this->factory->create();
        $worker->start();
        $this->workers->attach($worker, 0);
        return $worker;
    }