Closed
Description
Braw mornin' TAG!
I'm requesting a TAG review of AbortSignal.timeout(milliseconds)
.
This introduces a new static method, AbortSignal.timeout(milliseconds)
, which returns a newly-created AbortSignal
that, after milliseconds
milliseconds, becomes automatically aborted. The AbortSignal
's reason
property will be a "TimeoutError"
DOMException
. The main motivating use case for this is helping web developers easily time out async operations, such as fetch()
.
- Explainer¹ (minimally containing user needs and example code): Introduce AbortSignal.timeout() whatwg/dom#1032 (comment)
- Specification URL: [spec url] DOM PR: Introduce AbortSignal.timeout() whatwg/dom#1032
- Tests: [wpt folder(s), if available] To be added to https://github.com/web-platform-tests/wpt/tree/master/dom/abort
- User research: None
- Security and Privacy self-review²: https://gist.github.com/shaseley/2d3e76d98151811f1517f4380a12fe2b
- GitHub repo (if you prefer feedback filed there): Introduce AbortSignal.timeout() whatwg/dom#1032
- Primary contacts (and their relationship to the specification):
- Organization(s)/project(s) driving the specification: WHATWG github issues (see below)
- Key pieces of existing multi-stakeholder review or discussion of this specification:
- Issue: Add AbortSignal.timeout(ms) whatwg/dom#951
- PR: Introduce AbortSignal.timeout() whatwg/dom#1032
- Related issue, for
fetch()
: Add atimeout
option, to prevent hanging whatwg/fetch#951
- External status/issue trackers for this specification (publicly visible, e.g. Chrome Status):
Further details:
- I have reviewed the TAG's Web Platform Design Principles
- Relevant time constraints or deadlines: No deadline, but the spec PR has been approved and has support from multiple implementers, so I'd expect the first implementation and PR will both land soon.
- The group where the work on this specification is currently being done: WHATWG
- The group where standardization of this work is intended to be done (if current group is a community group or other incubation venue): N/A
- Major unresolved issues with or opposition to this specification: None known
- This work is being funded by: Google
We'd prefer the TAG provide feedback as (please delete all but the desired option):
💬 leave review feedback as a comment in this issue and @-notify [@domenic, @shaseley ]