An object that contains functions for handling task events.
The type of the input.
The type of the result.
Optional
A function that is called when a task fails.
A function that is called when a task succeeds.
An object that contains functions for handling task events.