Module reactive
Available on crate feature
std only.Expand description
A lock-free-read value paired with a race-free change signal.
Structs§
- Change
Signal - The listeners of one source, woken on every change.
- Change
Waiter - A
ChangeListenerthat one task awaits: seeSelf::wait. - Changed
- Change subscription handed out by
Reactive::watch. - Party
- One waiting task. It queues a
Waiterin eachWaitQueueit waits in, and any of them wakes it: seeSelf::woken. - Reactive
- A
ReactiveReprvalue with lock-free reads and a race-free typed change signal. - Wait
Queue - Parties waiting, in arrival order, for capacity that others free.
- Waiter
- A
Party’s place in oneWaitQueue, holding the wakes that queue sent it and the party did not spend: each a unit of capacity, or a change, to look at. Cloning it shares the place. - Wakes
- The wakes a
Waiterhad received when a look at its capacity began. - Woken
- Completes once its
Partyis woken after a count: seeParty::woken.
Enums§
- Change
- What changed at a source, so a listener wakes as many waiters as can use it.
Traits§
- Change
Listener - Woken, without a value, after a source it subscribed to changed.
- Reactive
Repr - A value that can be stored in a
Reactiveas ausize.