lovr.taskready
EditThe lovr.taskready callback is called when a task is ready to run after making an async call.
The default implementation is to resume it, but this can be overidden to customize the task scheduling behavior.
function lovr.taskready(task)
-- your code here
endArguments
| Name | Type | Description |
| task | thread | The task. |
Returns
Nothing
Example
function lovr.taskready(task)
assert(lovr.task.resume(task))
end