mlua icon indicating copy to clipboard operation
mlua copied to clipboard

How to begin writing an async module?

Open luxreduxdelux opened this issue 6 months ago • 0 comments

Hi, I have an mlua module that has to make an async call, and I'm not sure how to go about it exactly. My main issue is that on calling the async function in question, I get a crash about no reactor running in the module. No such error is happening if I move the module code into the main app and run it from there. My question is, how can I share the main app's Tokio runtime with the module so I can use async from there? Thank you.

luxreduxdelux avatar Jun 20 '25 17:06 luxreduxdelux