Esempio n. 1
0
 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)
Esempio n. 2
0
 def shutdown(self):
     if not hasattr(self, '_shutdown_thread'):
         self._shutdown_thread = self._real_shutdown()
     return util.branch_deferred(self._shutdown_thread)
Esempio n. 3
0
 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)
Esempio n. 4
0
 def get_result(self):
     return util.branch_deferred(self._result_df, lambda df_: self.cancel())
Esempio n. 5
0
 def get_result(self):
     return util.branch_deferred(self._result_df, lambda df_: self.cancel())
Esempio n. 6
0
 def shutdown(self):
     if not hasattr(self, '_shutdown_thread'):
         self._shutdown_thread = self._real_shutdown()
     return util.branch_deferred(self._shutdown_thread)