Proposal: Allow Promise callbacks to be removed
ajvincent at gmail.com
Mon Apr 23 21:07:11 UTC 2018
> My proposal is that we add a way of removing a particular callback, or all
> callbacks, from a Promise. This is different to cancelling a Promise and
> would instead happen if you want the operation to continue but are no
> longer interested in running a function when the Promise is resolved or
Devil's advocate from the peanut gallery: what's so hard about adding:
if (!isStillValid) return;
"The first step in confirming there is a bug in someone else's work is
confirming there are no bugs in your own."
-- Alexander J. Vincent, June 30, 2001
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss