Web APIs

AbortSignal.aborted

Try the free JavaScript compiler

Indicates whether the signal has entered its irreversible aborted state.

Formal Syntax & Structure

javascript syntaxjavascript
signal.aborted

Return Value

boolean

True after cancellation.

Working Example

Example Snippetjavascript
const c=new AbortController(); console.log(c.signal.aborted); c.abort(); console.log(c.signal.aborted);
JavaScript Reference