Hacker News new | past | comments | ask | show | jobs | submit login

They aren't part of the core API like they are in Twisted, is this correct?



No. Node is a lower-level API than Twisted.

The "fibers" utility is quite popular. There are also several different promise libraries, and a few code-translation approaches that simulate coroutines.

They all build on top of the very simple EventEmitter and continuation-passing-style ("callback") style that the node-core API uses.

As a JavaScript luddite, I prefer passing functions around and listening to events :)




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: