3 ms·
I won't argue that sometimes you might want to cancel a promise that you no longer need (ex: user cancels ajax operation) but just because there are no listener
by joshstrange 9y ago
I won't argue that sometimes you might want to cancel a promise that you no longer need (ex: user cancels ajax operation) but just because there are no listeners does not always mean you don't want it to complete (ex: Fire and forget, not always a great idea sure but a thing nonetheless).
- amelius 9y agoTrue, but you can implement fire and forget by adding a dummy listener. The functionality I'm suggesting is more general.