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

    Azure.CoreThe azure_core cratedesign-discussionAn area of design currently under discussion and open to team and community feedback.

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions