CommandFutures¶
-
class
lsst.ts.MTMount.CommandFutures¶ Bases:
objectasyncio futures to track the progress of an Operation Manager command.
Notes
Attributes
- ack: an
asyncio.Futurewhich is set to:- result=timeout (in sec) when the command is acknowledged (an Ack reply is read).
- exception=`lsst.ts.salobj.ExpectedError` if the command fails (a NoAck reply is read) before the command is acknowledged.
- done: an
asyncio.Futurewhich is set to:- result=`None` when the command finishes successfully (a Done reply is read).
- exception=`lsst.ts.salobj.ExpectedError` if the command fails.
Attributes Summary
timeoutReturn the timeout, in seconds. Methods Summary
setack(timeout)Report a command as started. setdone()Report a command as done. setnoack(explanation)Report a command as failed. Attributes Documentation
-
timeout¶ Return the timeout, in seconds.
Return None if command not acknowledged. Raise an exception if the command failed before being acknowledged.
Methods Documentation
-
setack(timeout)¶ Report a command as started.
Parameters: - timeout :
float Max time for command to complete (sec).
- timeout :
-
setdone()¶ Report a command as done.
- ack: an