Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Interesting opinion, and thanks for clearing up the confusion between "asynchronous" and "parallel." Now I understand that node.js is never parallel, but could you answer the question of whether the function in question is asynchronous or synchronous? Commented Apr 26, 2017 at 13:55
  • 1
    To make it truly asynchronous, you'll need to divide the part under "... do all the work ..." into small tasks using eg. process.NextTick if you don't - while this will be running you'll block your whole application. And this is one of more annoying parts of that "crappy design" i was talking about... Nodejs unlike any "normal" language, has no working user code scheduler. So you'll have to do it for the compiler "manually". This is so low level stuff that it can't be done right, and it's very hard to make it even barely working. That was the reason we actually dropped nodejs. Commented Apr 26, 2017 at 20:44