Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I can't believe he doesn't mention task.js: http://www.taskjs.org/

There's tons more potential that this guy describes, too. If you combine this with promises, which is what task.js does, you can immediately start using it in all of your node/client-side code that uses promises to turn your callbacks into `var x = yield getAsyncThing();`.



Good point, that is certainly relevant!

I tried to keep this writeup focused on comparing callback functions to coroutine event loops, especially regarding the differences in how they deal with state.

But I'll add a reference to task.js at the end, once I've tried it out.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: