Skip to content

AbortSignalLike

The structural subset of the standard AbortSignal that IndeRun relies on.

The contracts package targets a platform-neutral library surface and so has no DOM lib; a real AbortSignal satisfies this shape, so host implementations and callers can pass one directly.

readonly aborted: boolean

Whether cancellation has already been requested.

addEventListener(type, listener, options?): void

Registers a cancellation listener.

"abort"

() => void

boolean

void


removeEventListener(type, listener): void

Removes a previously registered cancellation listener.

"abort"

() => void

void