Interface ZExecutionInit<TResult>

Execution initializer.

Returned from execution starter to construct new executions.

Type Parameters

  • TResult

    Execution result type.

Hierarchy

  • ZExecutionInit

Methods

  • Constructs a promise that resolves to execution result.

    Returns TResult | PromiseLike<TResult>

    Either execution result, or a promise-like instance resolved to the one.

  • Constructs a promise resolved when execution starts.

    When omitted the execution is started when starter finishes its work.

    Returns void | PromiseLike<unknown>

    Either none, or a promise-like instance resolved when execution started, or rejected when it is aborted before being started.

Generated using TypeDoc