Comment on You can't cancel a JavaScript promise (except sometimes you can)Comments−eithed5moPromise itself has no first-class protocol for cancellation, but you may be able to directly cancel the underlying asynchronous operation, typically using AbortController.https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Comments
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...