Aborting a signal: How to cancel an asynchronous task in JavaScript
The article explains how AbortController and AbortSignal let you cancel async work in JavaScript, then shows how to build a cancelable function that handles both live and pre-aborted signals.