Skip to content

Add back mpsc try_recvΒ #3350

Closed
Closed
@Darksonn

Description

The mpsc try_recv method was removed in #3263 due to problems with the implementation. This issue tracks adding it back.

Note that it is currently possible to do unconstrained(rx.recv()).now_or_never() using tokio::task::unconstrained and FutureExt::now_or_never, but be aware that it has the same issue as the old try_recv that previously sent messages may not be available immediately. To be clear, they are not lost, the messages are just not received until later.

Metadata

Assignees

No one assigned

    Labels

    A-tokioArea: The main tokio crateC-feature-requestCategory: A feature request.M-syncModule: tokio/sync

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions