Skip to content

Provide a select_biased! macro #2181

@ifc2t

Description

@ifc2t

Since #2152 introduced the select! macro, is it possible to provide a select_biased! macro as well, similar to the futures-rs one?

It's useful in cases where the polling order does matter, such as when you need to guarantee dropping a future at the next yield point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tokioArea: The main tokio crateC-feature-requestCategory: A feature request.M-macrosModule: macros in the main Tokio crate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions