public function onWorkerComplete(WorkerInterface $worker)
    {
        $worker->free();
        $this->running = array_filter($this->running, function (WorkerInterface $worker) {
            return $worker->isRunning();
        });
    }
public function onWorkerComplete(WorkerInterface $worker)
    {
        $worker->free();
        $this->running = array_filter($this->running, function (WorkerInterface $worker) {
            return $worker->isRunning();
        });
    }
public function onWorkerComplete ( WorkerInterface $ worker ) { $ worker -> free ( ) ; $ this -> running = array_filter ( $ this -> running , function ( WorkerInterface $ worker ) { return $ worker -> isRunning ( ) ; } ) ; }
Frees a worker and removes workers that are not running
from the internal collection of running workers.

@param WorkerInterface $worker

@return void
Frees a worker and removes workers that are not running from the internal collection of running workers .