Skip to content

Is there any way to call async function inside scope block? #461

Answered by khvzak
jjeffcaii asked this question in Q&A
Discussion options

You must be logged in to vote

Only if you use block_on function to execute future.

Generally to provide (safe and sound) async in scope mlua needs to define an executor interface and bind to tokio (for example) which is not something I'm planning yet.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jjeffcaii
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