6 ms·
The main thing in my mind is that it means your code could have cases where it throws synchronously, and cases where the promise rejects with an error. One pla
by loganfsmyth 11y ago
The main thing in my mind is that it means your code could have cases where it throws synchronously, and cases where the promise rejects with an error.
One place this is mentioned is:
https://github.com/petkaantonov/bluebird/wiki/Promise-anti-patterns#the-deferred-anti-pattern https://github.com/petkaantonov/bluebird/wiki/Promise-anti-p...