tc39 / proposal-cancellation

Proposal for a Cancellation API for ECMAScript
https://tc39.github.io/proposal-cancellation
BSD 3-Clause "New" or "Revised" License
266 stars 12 forks source link

DOM AbortController #17

Closed dinoboff closed 7 years ago

dinoboff commented 7 years ago

WHATWG specifies an API similar to the stage 0 proposal and it's getting shipped and used for fetch:

Is this proposal still needed now browsers are shipping something so similar?

ikokostya commented 7 years ago

This issue already discuss in https://github.com/tc39/proposal-cancellation/issues/16

Problems with AbortController from my point of view :

Also I don't understand why AbortController uses events, because callback system in CancellationToken looks much simpler.

In my project I use all features (e.g. cancellation graphs) from prex library (which is implementation of this proposal) and I don't understand how I can use AbortController without adding missing functionality.

Don't forget that cancellation proposal is adaption from cancellation in the .NET Framework which is mature.

dinoboff commented 7 years ago

Don't know how I missed it. Thanks.