pub fn co_close(state: &mut LuaState) -> Result<usize, LuaError>Expand description
coroutine.close(co) — close a dead or suspended coroutine.
Closes a coroutine, running any pending to-be-closed variables via
__close and resetting its status. Valid only when the target is
suspended (Yield) or dead (Ok with no active frames).
Calling on a running or normal coroutine raises an error.
C: static int luaB_close(lua_State *L)