A function that is called when a task succeeds.
The type of the input.
The type of the result.
The result of the task.
The input that was passed to the task.
The index of the task in the order of the original input data.
A function that is called when a task succeeds.