ifm3dpy.PCICCommandResponseAwaitable

class ifm3dpy.PCICCommandResponseAwaitable

Bases: None

Provides a mechanism to access PCIC command results asynchronously

__init__(self: ifm3dpy.PCICCommandResponseAwaitable) None

Provides a mechanism to access PCIC command results asynchronously

Methods

__init__(self)

Provides a mechanism to access PCIC command results asynchronously

wait(self)

Blocks until the result becomes available.

wait_for(self, timeout_ms)

Blocks until specified timeout runs out or the result to becomes available.

wait(self) Union[None, str, bytes]

Blocks until the result becomes available.

wait_for(self, timeout_ms: int) Tuple[bool, Union[None, str, bytes]]

Blocks until specified timeout runs out or the result to becomes available.

Returns:

a tuple (True, Result) if a result was received within the timeout, (False, None) otherwise.