AbortController
DOM
DOM
The **`AbortController`** interface represents a controller object that allows you to abort one or more Web requests as and when desired.
You can create a new `AbortController` object using the AbortController() constructor. Communicating with an asynchronous operation is done using an AbortSignal object.
## Constructor
- AbortController()
- : Creates a new `AbortController` object instance.
## Instance properties
- AbortController.signal
- : Returns an AbortSignal object instance, which can be used to communicate with, or to abort, an asynchronous operation.
## Instance methods
- AbortController.abort()
- : Aborts an asynchronous operation before it has completed. This is able to abort [fetch requests](/docs/Web/API/Window/fetch), consumption of any response bodies, and streams.
## Examples
See the [`AbortSignal` page](/docs/Web/API/AbortSignal#examples) for usage examples.
You can find a [full working example on GitHub](https://github.com/mdn/dom-examples/tree/main/abort-api); you can also see it [running live](https://mdn.github.io/dom-examples/abort-api/).
## Specifications
## Browser compatibility
## See also
- [Fetch API](/docs/Web/API/Fetch_API)
- [Abortable Fetch](https://developer.chrome.com/blog/abortable-fetch/) by Jake Archibald
Cite this
"AbortController". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/AbortController JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy