task
.run
task.run(routine: fn) -> num
Params (1)
routine
A function to be run.
Return value
Returns the identifier number of the task.
.do
task.do(function: fn, delay: num) -> num
Call a function, with a delay time.
Params (2)
function
A zero-parameter function to be executed.
delay
Delay time in milliseconds.
Return value
Identifier of a timer.
.waitAll
task.waitAll()
Wait all task to finish.
Last updated
Was this helpful?