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

Is this similar to the co utility? I've been using it to yield partially-applied node calls directly, no promises required.

    var text = yield fs.readFile.bind(null, '/file.txt')


Yes, it's similar, `Promise.coroutine` is faster and a stronger abstraction though, especially with `addYieldHandler`.




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

Search: