/** * {@inheritdoc} This dispatcher defers worker timeout to post-dispatch. * * @return void */ public function run() { if ($this->manager->count() >= $this->max_workers) { $this->manager->wait(); } elseif ($this->queue->count()) { $this->dispatch($this->queue->pop()); } }