- From: Jake Archibald <notifications@github.com>
- Date: Fri, 21 May 2021 06:05:49 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 21 May 2021 13:06:01 UTC
> 1. Your example has `if (this.aborted) throw new DOMException('', 'AbortError');` where ours would be `return Promise.reject(new DOMException(...)` on the first line. In other words, our `race` always returns a promise My bad. It should have been an async promise to enforce that. I've updated my implementation. > everywhere you’d have written `await x` becomes `await signal.race(x)` unless `x` itself consumes the signal”. That's a good way to think of 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/946#issuecomment-845936387
Received on Friday, 21 May 2021 13:06:01 UTC