News for hackers. Stuff that matters.
Re:Why I am switching to promises by spion on Tuesday January 07, 2014 @04:12PM (#7019969)
Some of those "things" you counted are based on generators, which let you to do exactly what you want.

Example: https://github.com/spion/async-compare/blob/master/examples/...

With promises, generators are not really necessary -- especially if you add arrow function syntax into the mix. https://gist.github.com/spion/8254661

(Note: that particular method in doxbee has long since been refactored to something saner with better separation of concerns :)

There are no comments on this comment yet.