Difference between revisions of "Coroutine.running"
From ComputerCraft Wiki
MathManiac0 (Talk | contribs) (Created Page) |
m (Moved to CAT:LuaCoreFunctions) |
||
| Line 11: | Line 11: | ||
}} | }} | ||
}} | }} | ||
| + | |||
| + | [[Category:Lua_Core_Functions]] | ||
Revision as of 18:46, 28 November 2012
| Returns the running coroutine, or nil if running the main coroutine. | |
| Syntax | coroutine.running() |
| Returns | coroutine running coroutine |
| Part of | ComputerCraft |
| API | Coroutine |
Examples
| Stops the currently running coroutine | |
| Code |
coroutine.yield(coroutine.running()) |