Class SequentialTasks<C extends FlowContext>

java.lang.Object
org.jboss.elemento.flow.SequentialTasks<C>
Type Parameters:
C - the type of the context shared between tasks
All Implemented Interfaces:
Task<C>

public class SequentialTasks<C extends FlowContext> extends Object implements Task<C>
A task implementation that executes a list of asynchronous tasks in order.

This implementation makes it easy to nest the execution of asynchronous tasks inside a call to Flow.parallel(FlowContext, List), Flow.sequential(FlowContext, List) or Flow.repeat(FlowContext, Task).