38 public \SplQueue $tasks;
40 public function __construct(
42 public readonly
int $sleeperNotifierId
44 $this->lastUsed = time();
45 $this->tasks = new \SplQueue();
48 public function submit(
AsyncTask $task) :
void{
49 $this->tasks->enqueue($task);
50 $this->lastUsed = time();
51 $this->worker->stack($task);