Value#
- class ultimo.value.Value(value=None)#
A source which stores a varying value that can be observed.
Note that iterators on a value will emit the value at the time when it runs, not at the time when the update occurred. If the value updates rapidly then values may be skipped by the iterator.
Methods
fire
()Set the async event to wake iterators.
sink
(source)Sink creator that updates the value from another source.
update
(value)Update the value, firing the event.
Attributes
An uasyncio Event which is set to wake the iterators.
- event: uasyncio.Event#
An uasyncio Event which is set to wake the iterators.
- async fire()#
Set the async event to wake iterators.
- sink(source)#
Sink creator that updates the value from another source.
- async update(value)#
Update the value, firing the event.