- From: Ron Buckton <notifications@github.com>
- Date: Fri, 13 Nov 2020 10:55:50 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 13 November 2020 18:56:03 UTC
> 2. The "follow" operation has always seemed unintuitive to me, compared with a "race" or "create linked token source" style API ([described here in the context of the defunct cancelable promises proposal](https://github.com/tc39/proposal-cancelable-promises/blob/0e769fda8e16bff0feffe964fddc43dcd86668ba/Cancel%20Tokens.md#combining-cancel-tokens)). But, I don't trust my inutition here. Would someone with more experience be able to discuss the differences between these, and argue for one or the other? `race` is the approach I went with in https://esfx.js.org/esfx/api/async-canceltoken/canceltoken.html#_esfx_async_canceltoken_CancelToken_race_member_1_ (which is the successor to `prex` and based on my [Cancellation Protocol](https://github.com/tc39/proposal-cancellation/issues/22) proposal). -- 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/920#issuecomment-726970955
Received on Friday, 13 November 2020 18:56:03 UTC