Module task
Task functions
Info:
- Copyright: 2014
- License: GPL
- Author: Magic Lantern Team
Functions
create (f[, priority[, stack_size]]) | Creates a new task. |
yield (duration) | Yields execution of this script to other tasks and event handlers |
Functions
- create (f[, priority[, stack_size]])
-
Creates a new task. It will begin executing when you return or call task.yield()
Parameters:
- f function the function to run
- priority int (optional)
- stack_size int (optional)
- yield (duration)
-
Yields execution of this script to other tasks and event handlers
Parameters:
- duration int how long to sleep for in ms