Skip to content

Add a spawn_blocking function to the async_runtime trait to allow consuming futures synchronously. #2731

@LarryOsterman

Description

@LarryOsterman

Feature Summary

Executing futures synchronously is a common operation for async runtimes.

Feature Description

Executing futures synchronously is a common operation for async runtimes.

Implement a synchronous spawn_blocking function which takes a future as a parameter and executes the future synchronously in the current thread in a fashion appropriate for the current async runtime.

Use Case

No response

Alternatives

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageWorkflow: This is a new issue that needs to be triaged to the appropriate team.

    Projects

    Status

    Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions