ifm3dpy.Awaitable
- class ifm3dpy.Awaitable
Bases:
None
Provides a mechanism to wait for completion of a task
- __init__(self: ifm3dpy.Awaitable) None
Provides a mechanism to wait for completion of a task
Methods
__init__
(self)Provides a mechanism to wait for completion of a task
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) None
Blocks until the result becomes available.
- wait_for(self, timeout_ms: int) Tuple[bool, None]
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.