A function type that defines how a promise should be executed.
The type of data that will be resolved
A function type that defines how a promise should be executed.