Hold#

class ultimo.value.Hold(value, hold_time=60)#

A value that holds a new value for a period, and then resets to a default.

Methods

fire()

Set the async event to wake iterators.

hold()

sink(source)

Sink creator that updates the value from another source.

update(value)

Update the value, firing the event.

Attributes

event

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.

flow#

alias of EventFlow

sink(source)#

Sink creator that updates the value from another source.

async update(value)#

Update the value, firing the event.