def _cancel_power_timeout(self): if self._power_on_timeout_id is not None: pyons.cancel(self._power_on_timeout_id) self._power_on_timeout_id = None if __name__ == '__main__': if self._power_off_timeout_id is not None: pyons.cancel(self._power_off_timeout_id) self._power_off_timeout_id = None
def clear(self): for signal in self._tx_signals: signal.cancel() # removes from the receiver, terminates self._tx_signals.clear() while self._num_rx_signals > 0: self._rx_signals[0].cancel() # the signal will be removed here if self._tx_end_timeout is not None: pyons.cancel(self._tx_end_timeout) self._tx_end_timeout = None self._first_decided = None
def cancel(self): if self._begin_timeout_id is not None: pyons.cancel(self._begin_timeout_id) self._begin_timeout_id = None if self._end_timeout_id is not None: pyons.cancel(self._end_timeout_id) self._end_timeout_id = None self.receiver.cancel_receive(self) self._state = Signal.State.TERMINATED
def _cancel_delayed_send(self): if self._delayed_send_timeout_id is not None: pyons.cancel(self._delayed_send_timeout_id) self._delayed_send_timeout_id = None
def _cancel_reply_timeout(self): if self._reply_timeout_id is not None: pyons.cancel(self._reply_timeout_id) self._reply_timeout_id = None
def _cancel_command_timeout(self): if self._command_timeout_id is not None: pyons.cancel(self._command_timeout_id) self._command_timeout_id = None