Skip to content

How to call a Lua async function with multiple arguments? #596

Answered by Kanaye
joseluisq asked this question in Q&A
Discussion options

You must be logged in to vote

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.

lua_function.call_async::<MyTable>((my_userdata1, my_userdata2)).await

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@joseluisq
Comment options

Answer selected by joseluisq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants