Esempio n. 1
0
 def on_result(self, result):
     if not result:
         return
     assert self.task, "on_result can't outside a callback."
     if self.is_debugger():
         pprint(result)
     if self.__env__.get('result_queue'):
         self.__env__['result_queue'].put((self.task, result))
Esempio n. 2
0
 def on_result(self, result):
     if not result:
         return
     assert self.task, "on_result can't outside a callback."
     if self.is_debugger():
         pprint(result)
     if self.__env__.get('result_queue'):
         self.__env__['result_queue'].put((self.task, result))
Esempio n. 3
0
 def on_result(self, result):
     """Receiving returns from other callback, override me."""
     if not result:
         return
     assert self.task, "on_result can't outside a callback."
     if self.is_debugger():
         pprint(result)
     if self.__env__.get('result_queue'):
         self.__env__['result_queue'].put((self.task, result))