src/Pool.php
function broadcastMessage(\CharlotteDunois\Phoebe\Message $message, ?\CharlotteDunois\Phoebe\Worker $skip = null) {
        foreach($this->workers as $worker) {
            if(!$worker->isRunning()) {
                $this->loop->futureTick(function () use ($worker) {
                    $this->stopWorker($worker);
                });
            } elseif($skip !== $worker) {
                $this->sendMessageToWorker($worker, $message);
            }
        }
    }
function broadcastMessage(\CharlotteDunois\Phoebe\Message $message, ?\CharlotteDunois\Phoebe\Worker $skip = null) {
        foreach($this->workers as $worker) {
            if(!$worker->isRunning()) {
                $this->loop->futureTick(function () use ($worker) {
                    $this->stopWorker($worker);
                });
            } elseif($skip !== $worker) {
                $this->sendMessageToWorker($worker, $message);
            }
        }
    }
Broadcasts a message to all workers.
@param \CharlotteDunois\Phoebe\Message      $message
@param \CharlotteDunois\Phoebe\Worker|null  $skip     The worker to skip, or null.
@return void