Skip to content

ResettableAbortController.abort method

ResettableAbortController › abort

Aborts the current signal and replaces it with a fresh, non-aborted one.

Signature:

abort(reason?: unknown): void

Parameters:

ParameterTypeDescription
reason?unknownThe reason to abort with. When omitted, the signal is aborted with the native AbortError {@link DOMException}, exactly as {@link AbortController.abort} does.

Returns: void