Skip to main content

Module reactive

Module reactive 

Available on crate feature std only.
Expand description

A lock-free-read value paired with a race-free change signal.

Structs§

ChangeSignal
The listeners of one source, woken on every change.
ChangeWaiter
A ChangeListener that one task awaits: see Self::wait.
Changed
Change subscription handed out by Reactive::watch.
Party
One waiting task. It queues a Waiter in each WaitQueue it waits in, and any of them wakes it: see Self::woken.
Reactive
A ReactiveRepr value with lock-free reads and a race-free typed change signal.
WaitQueue
Parties waiting, in arrival order, for capacity that others free.
Waiter
A Party’s place in one WaitQueue, 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 Waiter had received when a look at its capacity began.
Woken
Completes once its Party is woken after a count: see Party::woken.

Enums§

Change
What changed at a source, so a listener wakes as many waiters as can use it.

Traits§

ChangeListener
Woken, without a value, after a source it subscribed to changed.
ReactiveRepr
A value that can be stored in a Reactive as a usize.