Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function shutdown() : Awaitable
 {
     $e = new PoolShutdownException('Pool shut down');
     $this->executor->cancel($e);
     foreach ($this->workers as $worker) {
         $worker->shutdown($e);
     }
     $this->workers = new \SplObjectStorage();
     return new Success(null);
 }