How to Annul Promises in JavaScript
In JavaScript, you might already know how to cancel a request: you can use xhr.abort() for XHR and signal for fetch. But how do you cancel a regular Promise? Currently, JavaScript’s Promise does not natively provide an API to cancel...