From f41a788cb424b31fd687253e8db3fd448a693b4a Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 21 Aug 2010 01:14:24 -0400 Subject: Added Lua autocompletion support. --- modules/lua/api/coroutine.luadoc | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 modules/lua/api/coroutine.luadoc (limited to 'modules/lua/api/coroutine.luadoc') diff --git a/modules/lua/api/coroutine.luadoc b/modules/lua/api/coroutine.luadoc new file mode 100644 index 00000000..7e60f275 --- /dev/null +++ b/modules/lua/api/coroutine.luadoc @@ -0,0 +1,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, ...) -- cgit v1.2.3