Skip to content

coroutine

function coroutine.create(f: function): thread
function coroutine.running(): thread?
function coroutine.status(co: thread): string
function coroutine.wrap(f: function): function
function coroutine.yield(args: ...any): ...any
function coroutine.isyieldable(): boolean
function coroutine.resume(co: thread, args: ...any): (boolean, ...any)
function coroutine.close(co: thread): (boolean, any?)