pub fn close_thread(state: &mut LuaState, from: Option<&LuaState>) -> i32Expand description
Close a coroutine thread from the perspective of another thread.
C: LUA_API int lua_closethread(lua_State *L, lua_State *from) (pub)
// C: LUA_API int lua_closethread(lua_State *L, lua_State *from) {
// int status;
// lua_lock(L);
// L->nCcalls = (from) ? getCcalls(from) : 0;
// status = luaE_resetthread(L, L->status);
// lua_unlock(L);
// return status;
// }