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

> it's the lack of language syntax support for asynchronous programming

    spawn(function*() {
        var ra = yield async_opA();
        var rb = yield async_opB(ra);
        yield async_opC(ra, rb);
    });
This works right now in Gecko: http://taskjs.org/. Something very close ought work in ES6/Harmony.


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

Search: