mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 05:42:13 +09:00
Implement scheduled tasks
This commit is contained in:
parent
2f0ec84cc2
commit
53cd6e807d
7 changed files with 419 additions and 122 deletions
|
|
@ -105,12 +105,12 @@ class Dummy implements QueueInterface
|
|||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
{
|
||||
$result = $this->_dummy_queue;
|
||||
$this->_dummy_queue = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue