blob: 7e60f2754eb062c3315e079b7673f0efd34686fc (
plain)
1
2
3
4
5
6
7
8
9
10
|
--- Creates coroutine from function f, returns coroutine.
function create(f)
-- Continues execution of co, returns bool status plus any values.
function resume(co, val1, ...)
--- Returns co status: "running", "suspended" or "dead".
function status(co)
--- Creates coroutine with body f, returns function that resumes co.
function wrap(f)
--- Suspend execution of calling coroutine.
function yield(val1, ...)
|