Skip to content

Instantly share code, notes, and snippets.

@abesto

abesto/repro.rs Secret

Created June 13, 2021 21:45
Show Gist options
  • Save abesto/9dc5ba23e8b46da0f3d5b9db9f46ff53 to your computer and use it in GitHub Desktop.
Save abesto/9dc5ba23e8b46da0f3d5b9db9f46ff53 to your computer and use it in GitHub Desktop.
use mlua::prelude::*;
fn repro() {
let lua = Lua::new();
tokio::spawn(async move {
let n = lua
.load("return 42")
.eval_async::<LuaInteger>()
.await
.unwrap();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment