src/Pool.php
protected function checkWorkerShutdown(\CharlotteDunois\Phoebe\Worker $worker) {
        $this->loop->futureTick(function () use ($worker) {
            if($worker->isRunning()) {
                return $this->checkWorkerShutdown($worker);
            }
            
            $this->messenger->removeWorkerSocket($worker);
            $this->emit('exitWorker', $worker);
        });
    }
protected function checkWorkerShutdown(\CharlotteDunois\Phoebe\Worker $worker) {
        $this->loop->futureTick(function () use ($worker) {
            if($worker->isRunning()) {
                return $this->checkWorkerShutdown($worker);
            }
            
            $this->messenger->removeWorkerSocket($worker);
            $this->emit('exitWorker', $worker);
        });
    }
Checks periodically whether the worker has shutdown.
@param \CharlotteDunois\Phoebe\Worker  $worker
@return void