pub fn co_create(state: &mut LuaState) -> Result<usize, LuaError>Expand description
coroutine.create(f) — create a new coroutine that will run function f.
Allocates a real LuaState registered in GlobalState::threads, with f
staged on the new thread’s stack so coroutine.status reports
"suspended". Pushes the new thread value and returns 1.