Baseline Widely available
Note: This feature is available in Web Workers.
The aborted
read-only property returns a value that indicates whether the asynchronous operations the signal is communicating with are aborted (true
) or not (false
).
true
(aborted) or false
In the following snippet, we create a new AbortController
object, and get its AbortSignal
(available using the signal
property). Later on, using the aborted
property, we check whether or not the signal has been aborted, and send an appropriate log to the console.
const controller = new AbortController();
const signal = controller.signal;
// â¦
if (signal.aborted) {
console.log("Request has been aborted");
} else {
console.log("Request not aborted");
}
Specifications Browser compatibility See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4