pub fn reset_thread(state: &mut LuaState, status: i32) -> i32
Reset a thread to its base state, closing all to-be-closed variables.
Returns the final status code as an i32 (mirrors the C API).
i32