lovr.task.getStatus
EditReturns the status of a task.
status = lovr.task.getStatus(task)Arguments
| Name | Type | Description |
| task | thread | The task to check. |
Returns
| Name | Type | Description |
| status | string | nil | The status of the task. |
Notes
Status will be one of:
running- The current running task.complete- The task function returned without error.failed- The task threw an error.waiting- The task is waiting on an async call.ready- The task is ready to resume.- nil - The task is not tracked by the task scheduler.