-
Hi, I would like to call a Lua async function passing multiple arguments but unfortunately, I couldn't find an example. My example is the following: Rust lua_function.call_async::<MyTable>(my_userdata1, my_userdata2).await
Lua function(data1, data2)
end Edit: I am using mlua |
Beta Was this translation helpful? Give feedback.
Answered by
Kanaye
Jun 15, 2025
Replies: 1 comment 1 reply
-
You can call it just like any other function. lua_function.call_async::<MyTable>((my_userdata1, my_userdata2)).await |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
joseluisq
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can call it just like any other function.
By providing something that implements
IntoLuaMulti
as the argument.This trait is implemented for tuples so you can just use one for your example.