Crate async_atomic
source ·Expand description
Atomics which can be subscribed to and asynchronously notify when updated.
The main structure is Atomic
that behaves like stdlib’s atomics,
but don’t take an explicit Ordering
for simplicity.
An Subscriber
can be created from Atomic
to asynchronously wait for changes.
It is only one subscriber allowed for each atomic.
Structs§
- Atomic value that also contains
Waker
to notify subscriber asynchronously. - Stream that yields value when it change.
- Future to wait for specific value.
- Future to wait and update an atomic value.
Type Aliases§
- Subscriber of the atomic variable.