Coroutine.running

From ComputerCraft Wiki
Revision as of 17:21, 13 November 2012 by MathManiac0 (Talk | contribs) (Created Page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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())