Function isAborted
Parameters
Optionalsignal: AbortSignalAn optional AbortSignal to check.
Returns boolean
trueif the signal is defined and aborted; otherwisefalse.
Optionalsignal: AbortSignalAn optional AbortSignal to check.
true if the signal is defined and aborted; otherwise false.
Determines whether the provided AbortSignal has been aborted.
Primarily provided for source-level consistency and readability when checking cooperative cancellation in loops and async operations.