- From: Anne van Kesteren <notifications@github.com>
- Date: Mon, 20 Sep 2021 04:13:07 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 20 September 2021 11:13:20 UTC
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