Functions
Link copied to clipboard
The AbortSignal.abort() static method returns an AbortSignal that is already set as aborted (and which does not trigger an abort event).
Link copied to clipboard
The AbortSignal.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. The abort reason will be set to the reason of the first signal that is aborted. If any of the given abort signals are already aborted then so will be the returned AbortSignal.
Link copied to clipboard
The AbortSignal.timeout() static method returns an AbortSignal that will automatically abort after a specified time.