coroutine.running

Returns the running coroutine

Prototype

thread = coroutine.running ()

Description

Returns the running coroutine, or no value when called by the main thread.

Lua functions

Topics