mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 09:24:17 +09:00
Implement scheduled tasks
This commit is contained in:
parent
2f0ec84cc2
commit
53cd6e807d
7 changed files with 419 additions and 122 deletions
|
|
@ -62,10 +62,10 @@ interface QueueInterface
|
|||
public function addTask(string $handler, ?object $args = null, ?object $options = null): int;
|
||||
|
||||
/**
|
||||
* Get the first task.
|
||||
* Get the next task from the queue.
|
||||
*
|
||||
* @param int $blocking
|
||||
* @return ?object
|
||||
*/
|
||||
public function getTask(int $blocking = 0): ?object;
|
||||
public function getNextTask(int $blocking = 0): ?object;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue