Factory

Functions

Link copied to clipboard
open override fun abort(): AbortSignal

Returns an AbortSignal instance that is already set as aborted.

Link copied to clipboard
open override 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
open override fun timeout(time: Int): AbortSignal

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