A promise extended with a cancel() method. Calling cancel() aborts the in-flight operation; the promise still settles, typically with a 'cancelled' result.
cancel()
'cancelled'
A promise extended with a
cancel()method. Callingcancel()aborts the in-flight operation; the promise still settles, typically with a'cancelled'result.