Difference between revisions of "Coroutine.running"

From ComputerCraft Wiki
Jump to: navigation, search
(Created Page)
 
m (Moved to CAT:LuaCoreFunctions)
Line 11: Line 11:
 
}}
 
}}
 
}}
 
}}
 +
 +
[[Category:Lua_Core_Functions]]

Revision as of 18:46, 28 November 2012

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())