Document how tokio::sync::broadcast::channel(0)
behaves
#4621
Labels
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
M-sync
Module: tokio/sync
I'm not sure how
broadcast::channel(0)
would work, and if I should set my capacity to 0 or 1 if I only intend on ever sending 1 message. If the capacity is 0, does that mean the sending thread blocks until all receiving threads have received, likecrossbeam_channel
? https://docs.rs/crossbeam-channel/latest/crossbeam_channel/struct.Sender.html#method.sendThe text was updated successfully, but these errors were encountered: