Skip to content

Alternative to Runtime::enter that doesn't return a guard #7040

Open
@dev-ardi

Description

Runtime::enter returns a guard that I need to hold somehow in order to not exit the runtime context.
Sometimes, for example when you're called from FFI you just want to enter the context as in most applications there's only one runtime.

Metadata

Assignees

No one assigned

    Labels

    A-tokioArea: The main tokio crateC-feature-requestCategory: A feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions