Skip to main content

type Seq<R,A>

A sequence of Tasks to be executed in order. Each task receives the output of the previous as input. The tuple structure enforces that the last element is the final Task with the desired result type.

Definition

type Seq<R = void, A extends readonly any[] = []> = [
    Task<unknown, A>,
    ...unknown[]
  ] & [
    ...unknown[],
    Task<R, unknown[]>
  ];