AddAsync
Yields
This is a yielding function. When called, it will pause the Lua thread that called the function until a result is ready to be returned, without interrupting other scripts.
Unsafe
For thread safety, this property is not safe to read in an unsynchronized thread.
Adds an item to the queue.
Parameters
Name | Type | Default | Description |
---|---|---|---|
|
The value of the item to add to the queue. |
||
|
Item expiration time, in seconds, after which the item will be automatically removed from the queue. |
||
0
|
Item priority. Items with higher priority are retrieved from the queue before items with lower priority. |
Returns
Return Type | Summary |
---|---|
No return. |