Skip to content

How to begin writing an async module? #603

@luxreduxdelux

Description

@luxreduxdelux

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions