| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/en-US/docs/Web/API/AbortController | [Back] [Original] |
Get to know MDN better
This feature is well established and works across many devices and browser versions. Its been available across browsers since March 2019.
Note: This feature is available in Web Workers.
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.
AbortController()Creates a new AbortController object instance.
AbortController.signal Read onlyReturns an AbortSignal object instance, which can be used to communicate with, or to abort, an asynchronous operation.
AbortController.abort()Aborts an asynchronous operation before it has completed. This is able to abort fetch requests, consumption of any response bodies, and streams.
See the AbortSignal page for usage examples.
You can find a full working example on GitHub; you can also see it running live.
| Specification |
|---|
| DOM # interface-abortcontroller |
This page was last modified on Sep 17, 2025 by MDN contributors.
AbortControllerAbortSignalAbstractRangeAttrCDATASectionCharacterDataCommentCustomEventDOMErrorDOMExceptionDOMImplementationDOMParserDOMTokenListDocumentDocumentFragmentDocumentTypeElementEventEventTargetHTMLCollectionMutationObserverMutationRecordNamedNodeMapNodeNodeIteratorNodeListProcessingInstructionQuotaExceededErrorRangeShadowRootStaticRangeTextTreeWalkerXMLDocumentXPathEvaluatorXPathExpressionXPathResultXSLTProcessorYour blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |