Example #1
0
    def handle(self):
        Parallel(
            TaskA(),
            TaskE()
        ).execute()

        TaskC().execute()
Example #2
0
    def handle(self):

        a = TaskA().execute()

        if a > 0:
            TaskB().execute()
        else:
            TaskC().execute()

        TaskD().execute()
    def handle(self):

        # Execute taskA and taskB in parallel
        a, b = Parallel(TaskA(), TaskB()).execute()

        # Wait for the end of execution of both tasks
        if a > b:
            TaskC().execute()
        else:
            TaskD().execute()
Example #4
0
 def handle(self):
     TaskA().dispatch()
     TaskB().dispatch()
     TaskC().execute()
     TaskD().execute()
 def handle(self):
     Parallel(TaskA(), TaskB(), TaskC(), TaskD()).execute()
 def handle(self):
     TaskA().execute()
     if self.state:
         TaskB().execute()
     else:
         TaskC().execute()