lovr.taskready

Edit

The 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
end

Arguments

NameTypeDescription
taskthread The task.

Returns

Nothing

Example

function lovr.taskready(task)
  assert(lovr.task.resume(task))
end

See also