Note

Ophyd async is included on a provisional basis until the v1.0 release and may change API on minor release numbers before then

ophyd_async.core.WatchableAsyncStatus#

class ophyd_async.core.WatchableAsyncStatus(iterator: AsyncIterator[WatcherUpdate[T]])[source]#

Bases: AsyncStatusBase, Generic[T]

Convert AsyncIterator of WatcherUpdates to bluesky Status interface.

Methods

add_callback

exception

watch

wrap

Wrap an AsyncIterator in a WatchableAsyncStatus.

Attributes

watch(watcher: Watcher)[source]#
classmethod wrap(f: Callable[[P], AsyncIterator[WatcherUpdate[T]]]) Callable[[P], WAS][source]#

Wrap an AsyncIterator in a WatchableAsyncStatus.

add_callback(callback: Callable[[Status], None])#
property done: bool#
exception(timeout: float | None = 0.0) BaseException | None#
property success: bool#