| coroutine.wrap |
|---|
| Lua function coroutine.wrap Summary Creates a thread and returns a function to resume it Prototype f = coroutine.wrap (f)Description Creates a thread with body f, and then returns a function that can be used to resume the thread. This is a slightly simpler interface than the coroutine.create / coroutine.resume sequence, however it makes error management harder.See Also ... Topics
Lua base functions
Lua bc (big number) functions
Lua bit manipulation functions
Lua coroutine functions
Lua debug functions
Lua io functions
Lua math functions
Lua os functions
Lua package functions
Lua PCRE regular expression functions
Lua script extensions
Lua string functions
Lua table functions
Lua utilities
ScriptingLua functions
coroutine.create (Creates a new coroutine thread)
coroutine.resume (Start or resume a thread)
coroutine.running (Returns the running coroutine)
coroutine.status (Returns the status of a thread)
coroutine.yield (Yields execution of thread back to the caller)(Help topic: lua=coroutine.wrap)
Documentation contents page |