Breaking a promise
July 4, 2024 By Mark Otto OffHow to Annul Promises in JavaScript — You can ‘cancel’ XHR and fetch requests, but can you cancel regular promises? Currently, no, but Zachary looks into doing the next best thing: telling a promise the game’s up, and discarding/ignoring its eventual results. Zachary Lee regex 2.1:…