Commits

Denis Bilenko committed 60b0007

add run_callback()

  • Participants
  • Parent commits dbf2b27

Comments (0)

Files changed (1)

     def callback(self, ref=None):
         return callback(self)
 
+    def run_callback(self, callback, *args):
+        result = callback(self)
+        result.start(callback, *args)
+        return result
+
     def fork(self, ref=None):
         return noop(self)