Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Intent to Prototype: AbortSignal.timeout() Static Method

115 views
Skip to first unread message

Scott Haseley

unread,
Jan 28, 2022, 5:20:56 PM1/28/22
to blink-dev

Contact emails

shas...@chromium.org

Explainer

https://github.com/whatwg/dom/pull/1032#issue-1058779111

Specification

https://github.com/whatwg/dom/pull/1032

Summary

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().



Blink component

Blink>DOM

Motivation

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) });



Initial public proposal



TAG review

https://github.com/w3ctag/design-reviews/issues/711

TAG review status

Pending

Risks



Interoperability and Compatibility



Gecko: No signal

WebKit: No signal

Web developers: No signals

Other signals:


Debuggability

Basic tooling only, i.e. autocomplete support for the new AbortSignal method will be provided.



Is this feature fully tested by web-platform-tests?

No

Flag name



Requires code in //chrome?

False

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1181925

Launch bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1292159

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5768400507764736

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages