Coroutine.running
From ComputerCraft Wiki
Revision as of 18:46, 28 November 2012 by AfterLifeLochie (Talk | contribs) (Moved to CAT:LuaCoreFunctions)
Function coroutine.running | |
Returns the running coroutine, or nil if running the main coroutine. | |
Syntax | coroutine.running() |
Returns | coroutine running coroutine |
Part of | ComputerCraft |
API | Coroutine |
Examples
Example | |
Stops the currently running coroutine | |
Code |
coroutine.yield(coroutine.running()) |