Skip to content

Documentation phrase about panics in mpsc channel may be obsolete #37915

Closed
@vi

Description

@vi

https://doc.rust-lang.org/std/sync/mpsc/fn.sync_channel.html#main

As with asynchronous channels, all senders will panic in send if the Receiver has been destroyed.

https://doc.rust-lang.org/std/sync/mpsc/struct.SyncSender.html#send.v

This function will never panic, but it may return Err if the Receiver has disconnected and is no longer able to receive information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions