*/ public \SplQueue $tasks; public function __construct( public readonly AsyncWorker $worker, public readonly int $sleeperNotifierId ){ $this->lastUsed = time(); $this->tasks = new \SplQueue(); } public function submit(AsyncTask $task) : void{ $this->tasks->enqueue($task); $this->lastUsed = time(); $this->worker->stack($task); } }