Coroutine.running
From ComputerCraft Wiki
Revision as of 18:25, 22 April 2013 by Hawk777 (Talk | contribs) (Remove example that doesn’t show anything interesting on its own, improve description, and use type template)
Function coroutine.running | |
Returns the running coroutine. If only the implicit top-level coroutine is running, nil is returned; however, ordinary applications will never see this because the CraftOS BIOS runs the shell, and therefore any application code, inside a coroutine. | |
Syntax | coroutine.running() |
Returns | coroutine the executing coroutine |
Part of | ComputerCraft |
API | Coroutine |
Examples
Please see Coroutine (API) for a worked example of using all the coroutine functions.