Type Alias TaskSuccessHandler<TInput, TResult>

TaskSuccessHandler: (result: TResult, input: TInput, index: number) => void

A function that is called when a task succeeds.

Type Parameters

  • TInput

    The type of the input.

  • TResult

    The type of the result.

Type declaration

    • (result: TResult, input: TInput, index: number): void
    • Parameters

      • result: TResult

        The result of the task.

      • input: TInput

        The input that was passed to the task.

      • index: number

        The index of the task in the order of the original input data.

      Returns void