AbortController Web API Reference
The AbortController interface lets JavaScript signal that an asynchronous operation should stop.
Updated 2026-08-07
Basic usage
Create a controller, pass its signal to an API such as fetch, and call abort() when the work is no longer needed.
JavaScript
const controller = new AbortController();
fetch(url, { signal: controller.signal });
controller.abort();