TaskHandler: change isQueued() to accept TaskHandler instead of int

This commit is contained in:
Dylan K. Taylor 2020-07-08 11:53:47 +01:00
parent a71b111b50
commit dca4bf424e

View File

@ -83,8 +83,8 @@ class TaskScheduler{
$this->ids = 1;
}
public function isQueued(int $taskId) : bool{
return isset($this->tasks[$taskId]);
public function isQueued(TaskHandler $task) : bool{
return isset($this->tasks[$task->getTaskId()]);
}
/**