Closed dinoboff closed 7 years ago
This issue already discuss in https://github.com/tc39/proposal-cancellation/issues/16
Problems with AbortController
from my point of view :
EventTarget
.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.
Don't know how I missed it. Thanks.
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?