Re: [whatwg/dom] Define a 'PromiseController' and 'PromiseSignal' interface. (#434)

Are we going to define a non-DOMException for the actual cancellation exception as well then so it could be factored out and move into the language if it ever comes that established?

When I talked rather informally with @ajklein we could only think of Fetch as really needing this, but if more folks want cancellation (some elaboration would be appreciated) we should maybe loop in some other folks for review as well.

Overall your PR looks fine, but I think we need some more abstraction for specification-consumers of the signal (that will then cancel/abort the actual operation). It's also not immediately obvious how this works where we expose the signal (a mirroring cross-thread instance of sorts I suppose) to the service worker (while the controller is on the main thread) which can then pass it along to new fetches (zero or more) which the controller will also end up affecting.

-- 
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-291858015

Received on Wednesday, 5 April 2017 13:18:33 UTC