Interface SequencePattern<T>

Represents the pattern for task execution as a sequence of tasks

interface SequencePattern<T = any> {
    finally?: TaskHandler<any, any>[];
    post?: TaskHandler<any, any>[];
    pre?: TaskHandler<any, any>[];
    task: TaskHandler<T, any>;
}

Type Parameters

  • T = any

Properties

Properties

finally?: TaskHandler<any, any>[]

Tasks to be executed at the end of the sequence, the finally tasks will be executed even if the main task fails.

post?: TaskHandler<any, any>[]

Tasks to be executed after the main task, if the main task fails, the post tasks will not be executed, but the finally tasks will be executed.

pre?: TaskHandler<any, any>[]

Tasks to be executed before the main task

task: TaskHandler<T, any>

The main task to be executed