src/Pool.php
function handleStreamClose(\CharlotteDunois\Phoebe\Worker $worker) {
        $this->messenger->removeWorkerSocket($worker);
        $this->removeWorker($worker);
        
        $this->emit('exitWorker', $worker);
    }
function handleStreamClose(\CharlotteDunois\Phoebe\Worker $worker) {
        $this->messenger->removeWorkerSocket($worker);
        $this->removeWorker($worker);
        
        $this->emit('exitWorker', $worker);
    }
Handles a stream close.
@param \CharlotteDunois\Phoebe\Worker  $worker
@return void
@internal