ophyd.v2.core.observe_value#

async ophyd.v2.core.observe_value(signal: SignalR[T]) AsyncGenerator[T, None]#

Subscribe to the value of a signal so it can be iterated from.

Parameters:
signal:

Call subscribe_value on this at the start, and clear_sub on it at the end

Notes

Example usage:

async for value in observe_value(sig):
    do_something_with(value)