public function flush() { while ($work = $this->unit_of_work->getWork()) { $this->worker_pool->execute($work); } }