Factory

interface Factory

Abort Signal - Factory

Models the structure expected/provided for constructors of an AbortSignal.

AbortSignal static methods on MDN

Inheritors

Functions

Link copied to clipboard
abstract fun abort(): AbortSignal

Returns an AbortSignal instance that is already set as aborted.

Link copied to clipboard
abstract fun any(iterable: Iterable<AbortSignal>): AbortSignal

The any static method takes an iterable of abort signals and returns an AbortSignal. The returned abort signal is aborted when any of the input iterable abort signals are aborted.

Link copied to clipboard
abstract fun timeout(time: Int): AbortSignal

The timeout static method returns an AbortSignal that will automatically abort after a specified time.