Skip to content

AbortSignal.timeout() #711

Closed
Closed
@shaseley

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

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 ]

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions