Skip to content

throwIfAborted

throwIfAborted is a function that throws an error if the provided abort signal has been aborted, including the reason for abortion. It is provided for environments that do not have new AbortSignal().throwIfAborted() implemented.

Import

import { throwIfAborted } from "@tai-kun/surrealdb/utils";

Usage

function throwIfAborted(signal: AbortSignal | null | undefined): void;

Arguments

signal
The abort signal.

Return Value

None.