task
Tasks: functions that run beside each other, each waiting when it likes.
task.spawn
task.spawn(f, ...)Starts a function as a task of its own, right now, and carries on when it first waits or ends. Gives the task back.
task.defer
task.defer(f, ...)Starts a function as a task of its own once this task waits or ends, in the same step.
task.delay
task.delay(seconds, f, ...)Starts a function as a task of its own after that many seconds.
task.wait
task.wait(seconds?)The same as wait.
task.cancel
task.cancel(task)Stops a task that is waiting. (A task ends itself with return.)