src/Pool.php
function submitTo(string $workerID, \Threaded $work) {
        if($this->timer === null) {
            $this->attachTimer();
        }
        
        if(!isset($this->workers[$workerID])) {
            throw new \InvalidArgumentException('Worker does not exist');
        }
        
        $worker = $this->checkAlive($this->workers[$workerID]);
        
        $this->busyWorkers->add($worker);
        $worker->stack($work);
        
        if($this->messenger->usesSockets()) {
            $msg = new \CharlotteDunois\Phoebe\Message('internal-worker-stack-increased', null);
            $this->sendMessageToWorker($worker, $msg);
        }
        
        return $worker;
    }
function submitTo(string $workerID, \Threaded $work) {
        if($this->timer === null) {
            $this->attachTimer();
        }
        
        if(!isset($this->workers[$workerID])) {
            throw new \InvalidArgumentException('Worker does not exist');
        }
        
        $worker = $this->checkAlive($this->workers[$workerID]);
        
        $this->busyWorkers->add($worker);
        $worker->stack($work);
        
        if($this->messenger->usesSockets()) {
            $msg = new \CharlotteDunois\Phoebe\Message('internal-worker-stack-increased', null);
            $this->sendMessageToWorker($worker, $msg);
        }
        
        return $worker;
    }
Submits the work to a specific worker.
@param string                          $workerID
@param \Threaded                       $work
@return \CharlotteDunois\Phoebe\Worker
@throws \InvalidArgumentException