AbortController
Generated from idl/dom.webidl when the site was built at 7aa23e2.
AbortController is an interface in idl/dom.webidl, exposed in Window, Worker. What it does is on MDN; this page says what niso has of it.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| AbortController and AbortSignal | Widely available | Partial 97% 70 of 72 subtests pass | 4 |
Members
Section titled “Members”constructor
Section titled “constructor”constructor();int32_t niso_abort_controller_new(niso_dom* dom, niso_handle* out);signal
Section titled “signal”[SameObject] readonly attribute AbortSignal signal;int32_t niso_abort_controller_get_signal(niso_dom* dom, niso_handle self, niso_handle* out);abort()
Section titled “abort()”[NisoReentrant] undefined abort(optional [NisoHeld] any reason);int32_t niso_abort_controller_abort(niso_dom* dom, niso_handle self, niso_held reason);NisoHeld: the reason is the caller’s value itself. Without one the standard makes a new “AbortError” DOMException, which the JS binding passes; through the C API a null reason stays null.