Expand description
A oneshot broadcast channel.
The motivation for this channel type was to allow multiple receivers to either wait for something to finish, or to have an inexpensive method of checking if it has finished.
See channel().
StructsΒ§
- Borrowed
Receiver πFuture - The future from
Receiver::borrowed. - Message
Already πSet - The message has already been set, and we canβt set it again.
- Receiver π
- A oneshot broadcast receiver.
- Receiver
Future π - The future from
Receiver::into_future. - Sender π
- A oneshot broadcast sender.
- Sender
Dropped π - The sender was dropped, so the channel is closed.
- Shared π
- State shared between the sender and receivers. Correctness:
- Waker
Key π - Wakers
Already πWoken - The wakers have already been woken.
FunctionsΒ§
- channel π
- Create a new oneshot broadcast channel.
- receiver_
fut_ πdrop - The shared drop implementation for receiver futures.
- receiver_
fut_ πpoll - The shared poll implementation for receiver futures.