Returns a new AbortSignal object that is automatically aborted after a given number of milliseconds. This method can be used by developers to easily implement timeouts for signal-accepting async APIs, e.g. fetch().
The main motivating use case for this is helping web developers easily time out async operations, such as fetch(). For example, now you can write: fetch(url, { signal: AbortSignal.timeout(10_000) });
Samples: https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/timeout
Explainers: https://github.com/whatwg/dom/pull/1032#issue-1058779111