Creates a wrapper function for a Promise that allows for cancellation and clearing of queued Promises.
The resolved value of the Promise.
The types of the arguments passed to the promise function.
The promise function to be wrapped.
Rest
Creates a wrapper function for a Promise that allows for cancellation and clearing of queued Promises.