w3ctag / design-reviews

W3C specs and API reviews
Creative Commons Zero v1.0 Universal
326 stars 55 forks source link

Design review: AbortSignal.any() #737

Closed shaseley closed 2 years ago

shaseley commented 2 years ago

Braw mornin' TAG!

I'm requesting a TAG review of AbortSignal.any(signals).

AbortSignal.any(signals) returns a signal that is aborted when any of the source signals are aborted. Developers can use this to combine independent abort sources, e.g. timeouts specified with AbortSignal.timeout() and signals associated with user input, and pass them to async APIs like fetch().

Further details:

We'd prefer the TAG provide feedback as (please delete all but the desired option):

🐛 open issues in our GitHub repo for each point of feedback

LeaVerou commented 2 years ago

Hi there,

We looked at this during a breakout today and we think this is ok — the addition does not introduce any new issues to the AbortSignal API.

Thank you for working with us!

shaseley commented 2 years ago

Thanks all!

shaseley commented 1 year ago

FYI: this feature has been merged into the dom spec (with no changes to the API since TAG review).