Another library that tries to make async code much cleaner is async.js (https://github.com/eligrey/async.js#readme). It uses yield and generators to abstract away the callback jungle.
For example, you can easily condense tens of lines of event code into a single `event = yield document.next("click")`
Comments
Another library that tries to make async code much cleaner is async.js (https://github.com/eligrey/async.js#readme). It uses yield and generators to abstract away the callback jungle.
For example, you can easily condense tens of lines of event code into a single `event = yield document.next("click")`