protected function createWorker()
    {
        if ($this->workerCreator !== null) {
            return call_user_func($this->workerCreator);
        } else {
            return new Worker($this->loader);
        }
    }
protected function createWorker()
    {
        if ($this->workerCreator !== null) {
            return call_user_func($this->workerCreator);
        } else {
            return new Worker($this->loader);
        }
    }
protected function createWorker ( ) { if ( $ this -> workerCreator !== null ) { return call_user_func ( $ this -> workerCreator ) ; } else { return new Worker ( $ this -> loader ) ; } }
Creates a worker
@return \Camspiers\Pthreads\Worker
Creates a worker