Discussion on: Elegant way to check if a Promise is pending

somedood profile image
Basti Ortiz (Some Dood)

In that case, assuming a Node environment as in your example in the article, wouldn't it be better (and more readable) to implement an event emitter instead?

It seems to me that promises may be the wrong abstraction for the job.