Coroutine.running

From ComputerCraft Wiki
Revision as of 18:46, 28 November 2012 by AfterLifeLochie (Talk | contribs) (Moved to CAT:LuaCoreFunctions)

Jump to: navigation, search
Grid Redstone.png  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

Grid paper.png  Example
Stops the currently running coroutine
Code
coroutine.yield(coroutine.running())