timeout

The timeout JS AbortSignal returns an AbortSignal instance which will be aborted in milliseconds milliseconds. Its abort reason will be set to a "TimeoutError" DOMException.

Syntax

AbortSignal.timeout(milliseconds)

Parameters

milliseconds

A unit of time. One millisecond is equal to one thousandth of a second.

Examples

abort

aborted

reason

throwIfAborted

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu