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

Firstly, huge thanks to @mikewest for getting this together!

Naming: I'm happy with using "abort" rather than "cancel" if it gets us out of the naming issues. I personally find "cancellation" the more natural spelling, but I'd totally just deal with it (like I do with US vs UK spellings).

Error type: I don't really see the issue with using `AbortError`, especially if we change the naming as above.

Should the `signal` be transferrable? That would help explain how it interacts with streams and service workers. Although, since a signal can be given to multiple consumers, the APIs would need to create their own signal that mimics the signal they're given, and transfer that. I guess we can do some hand-waving here and deal with full transferring later.

@slightlyoff you didn't like the naming of "signal" right? Speak now or forever hold your peace.

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

Received on Sunday, 9 April 2017 12:03:50 UTC