After you read dozens of articles about how big es6 promises are and why we should implement them, I have the feeling that ALL of my (non-trivial) javascript functions should be promises.
In fact, I feel great when writing code that uses them, as I avoid the doom triangle and seem to get clear and concise code. (it really makes reasoning about implementation a lot easier).
What I could not find: When do you NOT use promises? When will I not use them?
Update:
While I saw some great points, such as the consistency of the API, I have yet to find a solid case of NO. Lux's answer suggests that the operations that event emitters choose should avoid them, because repeated callbacks are not compatible with promises. However, I feel that the answer is still not enough to check it (as it is right) right now.
Msb
source share