lovr.task.poll

Edit

This 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

NameTypeDescription
iteratorfunction The iterator function, usable in a for loop.

Example

for task in lovr.task.poll() do
  assert(lovr.task.resume(task))
end

See also