task
The task library allows for functions and threads to be scheduled with the engine's scheduler.
The functions available in this library generally support functions and threads. In most cases using a function is sufficient, but for more advanced cases it's recommended you familiarize yourself with the coroutine library.
Summary
Functions
Calls/resumes a function/coroutine immediately through the engine's scheduler.
Calls/resumes a function/coroutine at the end of the current resumption cycle.
Schedules a function/coroutine to be called/resumed on the next Heartbeat after the given duration (in seconds) has passed, without throttling.
Causes the following code to be run in parallel.
Causes the following code to be run in serial.
Yields the current thread without throttling.
Cancels a thread, preventing it from being resumed.