Skip to content

Auto-detect existing tokio runtime? #491

Open
@TheBlueMatt

Description

@TheBlueMatt

When building, we could ask https://docs.rs/tokio/latest/tokio/runtime/struct.Handle.html#method.try_current if we're already in a runtime and use that, which would be nice. Sadly an outer library can't do that because they only get a Handle, not an Arc<Runtime>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions