Coroutine.running
From ComputerCraft Wiki
| 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()) |