The number of seconds before the returned abort signal will abort with a TimeoutError.
Optionalabort: Maybe<ReadonlyAbort>An abort signal to cascade.
The timeout message. Uses one token {0} which will be replaced by the
timeout.
ReadonlytimeoutThe number of seconds before the returned abort signal will abort with a TimeoutError.
True if aborted.
The reason passed to abort.
The native signal, if supported.
Aborts with a TimeoutError
Adds an event handler for the given typed event.
The key representing the event type to listen for.
A callback to invoke when the event with the given type is dispatched.
Optionaloptions: SignalOptionsOptions for changing listening behavior.
Returns a method, when invoked, removes the handler.
Invokes a callback on 'abort', or immediately if already aborted.
A
TimeoutControlleris an ReadonlyAbort implementation that will abort either after an elapsed timeout, an explicit abort call, or if the optional external abort signal fires.This allows a function (such as the network fetch layer) to abort from an externally provided abort signal, while maintaining its own timeout and abort logic internally.