"""Returns True if the operation has been cancelled. If True,
operation code should stop creating new work, and attempt to stop any
work already in progress."""
"""Returns True if the operation has been cancelled. If True,
operation code should stop creating new work, and attempt to stop any
work already in progress."""
"""Raise OperationCancelledError if the operation has been cancelled.
Operation code that has a robust error-handling path can simply call
this periodically."""
"""Raise OperationCancelledError if the operation has been cancelled.
Operation code that has a robust error-handling path can simply call
this periodically."""
"""Sets the Monitor's 'status' object to an arbitrary value.
Different operations will store different sorts of status information
here. Operation code should use get+modify+set sequences to update
this."""
"""Sets the Monitor's 'status' object to an arbitrary value.
Different operations will store different sorts of status information
here. Operation code should use get+modify+set sequences to update
this."""
"""Call this when the operation is done, successful or not. The
Monitor's lifetime is influenced by the completion of the operation
it is monitoring. The Monitor's 'status' value will be set with the
"""Call this when the operation is done, successful or not. The
Monitor's lifetime is influenced by the completion of the operation
it is monitoring. The Monitor's 'status' value will be set with the
"""Return a boolean, True if the operation is done (whether
successful or failed), False if it is still running."""
"""Return a boolean, True if the operation is done (whether
successful or failed), False if it is still running."""
"""Return a Deferred that fires when the operation is complete. It
will fire with the operation status, the same value as returned by
get_status()."""
"""Return a Deferred that fires when the operation is complete. It
will fire with the operation status, the same value as returned by
get_status()."""
"""Cancel the operation as soon as possible. is_cancelled() will
start returning True after this is called."""
"""Cancel the operation as soon as possible. is_cancelled() will
start returning True after this is called."""