web api instance property
AbortController: signal property
Available in workers
The signal read-only property of the AbortController interface returns an AbortSignal object instance, which can be used to communicate with/abort an asynchronous operation as desired.
Value
An AbortSignal object instance.
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
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.