promisesEM.md Promises as EventEmitters I was trying to understand JavaScript Promises by using various libraries (bluebird, when, Q) and other async approaches. I read the spec, some blog posts, and looked through some code. I learned how to use Promises, but their internals were still a mystery involving state-machiney concepts of pending, fulfilled and rejected states, buffering thenables, and
