Add Callback to Job Queue
ok = jqo:add(func, argt, [always])
Scans the jqo
for a matching combination of func
+ argt
.
The callback and arguments are queued if the combination is not already in the queue (or if always=true
).
Parameter | Type | Description |
---|---|---|
func |
function | Lua function to call |
argt |
table | Table of arguments to be passed to func |
always |
boolean | true = always add. Default is false which only adds if the function is not already in the jqo . |
Returns | Type | Description |
---|---|---|
ok |
boolean | true if added to the queue. |