Replies: 1 comment
-
Some explanation is provided in Any Rust+Lua async function calls When wrapping Rust async functions in |
Beta Was this translation helpful? Give feedback.
-
Some explanation is provided in Any Rust+Lua async function calls When wrapping Rust async functions in |
Beta Was this translation helpful? Give feedback.
-
I am trying to understand how Lua coroutines interact with async Rust functions. I have made a simple example like:
This first Lua code just calling sleep works as I expect, but the 2nd code (wrapping sleep()) in a coroutine requires resuming it millions of times in a loop before it is completed. I don't really know what I'm expecting, but just trying to understand how it's supposed to be working, and if this is normal.
Thanks!
Ben
Beta Was this translation helpful? Give feedback.
All reactions