cid cbece45fc93445817daa2d0f44dea61c9609f2c12575e44fffbc45505fb40140 · original · open access · via mdn
Title: AbortController - Web APIs | MDN Authors: Venue: mdn Year: 2019 Canonical: mdn:Web/API/AbortController URL: https://developer.mozilla.org/en-US/docs/Web/API/AbortController Collector: mdn OA: true ABSTRACT AbortController - Web APIs | MDN Skip to main content Skip to search AbortController Baseline Widely available This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2019. See full compatibility Learn more 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. Constructor AbortController() Creates a new AbortController object instance. Instance properties AbortController.signal Read only 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, consumption of any response bodies, and streams. Examples See the AbortSignal page for usage examples. You can find a full working example on GitHub; you can also see it running live. Specifications Specification DOM # interface-abortcontroller Browser compatibility See also Fetch API Abortable Fetch by Jake Archibald Help improve MDN Was this page helpful to you? Yes No Learn how to contribute This page was last modified on Sep 17, 2025 by MDN contributors. View this page on GitHub • Report a problem with this content