Lua's built in microthread library.
More...
|
| static | create (f) |
| | creates coroutine from function f, returns coroutine More...
|
| |
| static | resume (co, val1,...) |
| | continues execution of co, returns bool status plus any values More...
|
| |
| static | status (co) |
| | returns co status: "running", "suspended" or "dead" More...
|
| |
| static | wrap (f) |
| | creates coroutine with body f, returns function that resumes co More...
|
| |
| static | yield (val1,...) |
| | suspend execution of calling coroutine More...
|
| |
Lua's built in microthread library.
| static coroutine::create |
( |
f |
| ) |
|
|
static |
creates coroutine from function f, returns coroutine
| static coroutine::resume |
( |
co |
, |
|
|
val1 |
, |
|
|
|
... |
|
) |
| |
|
static |
continues execution of co, returns bool status plus any values
| static coroutine::status |
( |
co |
| ) |
|
|
static |
returns co status: "running", "suspended" or "dead"
| static coroutine::wrap |
( |
f |
| ) |
|
|
static |
creates coroutine with body f, returns function that resumes co
| static coroutine::yield |
( |
val1 |
, |
|
|
|
... |
|
) |
| |
|
static |
suspend execution of calling coroutine
The documentation for this class was generated from the following file: