why is there no coroutine
This commit is contained in:
parent
442d7af333
commit
3981d25305
@ -36,7 +36,16 @@ fn scheduler_mut<T>(lua:&mlua::Lua,mut f:impl FnMut(&mut crate::scheduler::Sched
|
||||
}
|
||||
fn init(lua:&mlua::Lua)->mlua::Result<()>{
|
||||
lua.sandbox(true)?;
|
||||
|
||||
lua.load_std_libs(
|
||||
mlua::StdLib::COROUTINE
|
||||
|mlua::StdLib::TABLE
|
||||
|mlua::StdLib::OS
|
||||
|mlua::StdLib::STRING
|
||||
|mlua::StdLib::UTF8
|
||||
|mlua::StdLib::BIT
|
||||
|mlua::StdLib::MATH
|
||||
|mlua::StdLib::BUFFER
|
||||
)?;
|
||||
//global environment
|
||||
let globals=lua.globals();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user