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.