diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/libs/lua53/coroutine.lni | 85 |
1 files changed, 83 insertions, 2 deletions
diff --git a/server/libs/lua53/coroutine.lni b/server/libs/lua53/coroutine.lni index 7f575257..22a30ec5 100644 --- a/server/libs/lua53/coroutine.lni +++ b/server/libs/lua53/coroutine.lni @@ -1,5 +1,86 @@ +[coroutine] +type = 'table' +[[.source]] +type = 'global' +[[.source]] +type = 'library' +name = 'coroutine' + [default] type = 'function' +[[.parent]] +type = 'global' +name = 'coroutine' +[[.parent]] +type = 'library' +name = 'coroutine' -[coroutine] -type = 'table' +[create] +[[.args]] +name = 'f' +type = 'function' +[[.returns]] +name = 'coroutine' +type = 'thread' + +[isyieldable] +[[.returns]] +type = 'boolean' + +[resume] +[[.args]] +name = 'co' +type = 'thread' +[[.args]] +name = 'val1' +optional = 'after' +[[.args]] +type = '...' +[[.returns]] +name = 'success' +type = 'boolean' +[[.returns]] +name = 'result' +[[.returns]] +type = '...' + +[running] +[[.returns]] +name = 'running_co' +type = 'thread' +[[.returns]] +name = 'is_main' +type = 'boolean' + +[status] +[[.args]] +name = 'co' +type = 'thread' +[[.returns]] +name = 'status' +type = 'string' +[[.enums]] +name = 'status' +enum = 'running' +[[.enums]] +name = 'status' +enum = 'suspended' +[[.enums]] +name = 'status' +enum = 'normal' +[[.enums]] +name = 'status' +enum = 'dead' + +[wrap] +[[.args]] +name = 'f' +type = 'function' +[[.returns]] +type = '...' + +[yield] +[[.args]] +type = '...' +[[.returns]] +type = '...' |