task.run(routine: fn) -> num
routine
A function to be run.
Returns the identifier number of the task.
task.do(function: fn, delay: num) -> num
Call a function, with a delay time.
function
A zero-parameter function to be executed.
delay
Delay time in milliseconds.
Identifier of a timer.
task.waitAll()
Wait all task to finish.
Last updated 4 years ago