def handle(self): Parallel( TaskA(), TaskE() ).execute() TaskC().execute()
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()
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()