mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
Implement high and low priority for queued tasks #2453
This commit is contained in:
parent
9ca2f79dce
commit
8014413163
5 changed files with 73 additions and 13 deletions
|
|
@ -57,9 +57,10 @@ interface QueueInterface
|
|||
* @param string $handler
|
||||
* @param ?object $args
|
||||
* @param ?object $options
|
||||
* @param ?string $priority
|
||||
* @return int
|
||||
*/
|
||||
public function addTask(string $handler, ?object $args = null, ?object $options = null): int;
|
||||
public function addTask(string $handler, ?object $args = null, ?object $options = null, ?string $priority = null): int;
|
||||
|
||||
/**
|
||||
* Get the next task from the queue.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue