Coroutine.running

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