Proposal: Allow Promise callbacks to be removed

Andrea Giammarchi andrea.giammarchi at
Tue Apr 24 08:12:11 UTC 2018

onto the actual then and catch, meaning if already resolved/rejected the
callback triggers right away ?

anyway, in case this proposal won't go anywhere, there is a module called
broadcast that would let you listen to named events, exposing a `drop`
functionality too.

Maybe that would be enough to move on with your code/needs.


On Mon, Apr 23, 2018 at 8:54 PM, Oliver Dunk <oliver at> wrote:

> > What happens to `p2` if I "unthen" `f` from `p1`?
> That’s an interesting point to explore. I would intuitively say p2
> continues to exist, but is never resolved or rejected.
> > Interesting. I have a proof of concept that would let you do this
> Andrea, that’s pretty much exactly what I was thinking. I’m assuming there
> is no way to polyfill onto the actual .then and .catch methods?
> _______________________________________________
> es-discuss mailing list
> es-discuss at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list