Skip to main content

co_running

Function co_running 

Source
pub fn co_running(state: &mut LuaState) -> Result<usize, LuaError>
Expand description

coroutine.running() — return the current coroutine plus a boolean.

The boolean is true when the current coroutine is the main thread.