3 ms·
I can't believe he doesn't mention task.js: http://www.taskjs.org/ http://www.taskjs.org/ There's tons more potential that this guy describes, too. If you comb
by jlongster 14y ago
I can't believe he doesn't mention task.js: http://www.taskjs.org/ 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();`.
- kilovoltaire 14y agoGood 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.