lovr.task.poll
EditThis function returns a Lua iterator for all of the tasks that areready to run. This function is called in the default implementation of lovr.run, so it's normally not necessary to call it manually.
iterator = lovr.task.poll()Arguments
None
Returns
| Name | Type | Description |
| iterator | function | The iterator function, usable in a for loop. |
Example
for task in lovr.task.poll() do
assert(lovr.task.resume(task))
end