Skip to content

frame

Yield the running process until its next activation. It is only valid inside a process. Available as frame after import_globals() or mv.process.frame.

Takes no arguments.

process(function()
print("first")
frame()
print("second")
end)()

Related: process, start.

See the lua processes guide for more examples and limits.