Coroutine.running
From ComputerCraft Wiki
Revision as of 18:46, 28 November 2012 by AfterLifeLochie (Talk | contribs) (Moved to CAT:LuaCoreFunctions)
| 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()) |