Proposal: Allow Promise callbacks to be removed

Alex Vincent 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
> rejected.
>

Devil's advocate from the peanut gallery:  what's so hard about adding:

```javascript
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...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180423/8e614266/attachment.html>


More information about the es-discuss mailing list