Re: [whatwg/dom] Add AbortSignal.timeout(ms) (#951)

https://github.com/whatwg/streams/issues/1165#issuecomment-920114795 has an updated take that's worth looking at for those following this issue. The proposal in OP would change to
```js
AbortSignal.timeout = ms => {
  const controller = new AbortController();
  setTimeout(() => controller.abort(new DOMException("TimeoutError"), ms);
  return controller.signal;
};
```
as I understand it.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/951#issuecomment-922833719

Received on Monday, 20 September 2021 11:13:20 UTC