- From: Jeffrey Yasskin <notifications@github.com>
- Date: Sun, 09 Apr 2017 09:32:32 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 9 April 2017 16:33:05 UTC
`CancelController` and `CancelError` might also be options. @annevk: @rbuckton's https://github.com/rbuckton/prex/blob/master/docs/cancellation.md#new-cancellationtokensourcelinkedtokens has the `CancellationTokenSource` constructor take a list of `CancellationTokens` such that if any of those tokens is cancelled, the new source also gets cancelled. That's composition, right? @bterlson, is it necessary to build this into the API, or can users just call `token.register(() => source.cancel())`? -- 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/pull/434#issuecomment-292796425
Received on Sunday, 9 April 2017 16:33:05 UTC