Task
Standard Luau task scheduler for defer, delay, spawn, and wait.
Available Functions
| Function | Description |
|---|---|
| task.defer | Calls the function later at the next resumption cycle. |
| task.delay | Scheduled to be called/resumed on the next Heartbeat after the given amount of time in seconds has elapsed. |
| task.spawn | This function is based on the fastSpawn pattern. |
| task.wait | Yields the current thread until the given duration (in seconds) has elapsed, then resumes the thread on the next Heartbeat step. |