Note

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

ophyd.v2.core.AsyncStatus#

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

Bases: Status

Convert asyncio awaitable to bluesky Status interface

Methods

add_callback

Add a callback function to be called upon completion.

exception

watch

Add watcher to the list of interested parties.

wrap

Attributes

done

If done return True, otherwise return False.

success

If done return whether the operation was successful.

add_callback(callback: Callable[[Status], None])#

Add a callback function to be called upon completion.

The function must take the status as an argument.

If the Status object is done when the function is added, it should be called immediately.

property done: bool#

If done return True, otherwise return False.

property success: bool#

If done return whether the operation was successful.

watch(watcher: Callable)#

Add watcher to the list of interested parties.

Arguments as per Bluesky watch() protocol.