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.AsyncStatus#

class ophyd_async.core.AsyncStatus(awaitable: Awaitable, watchers: List[Callable] | None = None)[source]#

Bases: Status

Convert asyncio awaitable to bluesky Status interface

Methods

add_callback

exception

watch

Add watcher to the list of interested parties.

wrap

Attributes

done

success

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

Add watcher to the list of interested parties.

Arguments as per Bluesky watch() protocol.

classmethod wrap(f: Callable[[T], Coroutine]) Callable[[T], AsyncStatus][source]#