def shutdown(self): self._node_handle._shutdown_callbacks.discard(self.shutdown) self._think_thread.cancel() self._think_thread.addErrback( lambda fail: fail.trap(defer.CancelledError)) self._handle_publisher_list([]) return util.branch_deferred(self._shutdown_finished)
def shutdown(self): if not hasattr(self, '_shutdown_thread'): self._shutdown_thread = self._real_shutdown() return util.branch_deferred(self._shutdown_thread)
def shutdown(self): self._node_handle._shutdown_callbacks.discard(self.shutdown) self._think_thread.cancel() self._think_thread.addErrback(lambda fail: fail.trap(defer.CancelledError)) return util.branch_deferred(self._shutdown_finished)
def get_result(self): return util.branch_deferred(self._result_df, lambda df_: self.cancel())