News for hackers. Stuff that matters.
Re:An Absolute Beginner's Guide to Node.js by oh_teh_meows on Tuesday August 20, 2013 @07:28PM (#6247276)
So basically if you have an infinite loop in your app's one and only thread, none of the callbacks will happen because they have to run on that one thread?
Re:An Absolute Beginner's Guide to Node.js by thedufer on Wednesday August 21, 2013 @12:41AM (#6248225)
Yep. Similar to how an infinite loop in the browser will freeze up the page - the browser only gets to control to draw by putting a draw function in the event loop, so if you hog the thread, the page can't update.
Re:An Absolute Beginner's Guide to Node.js by catnaroek on Tuesday August 20, 2013 @08:20PM (#6247461)
Remember the "Node.js is Cancer" troll? It was pretty much about this.
Re:An Absolute Beginner's Guide to Node.js by dsego on Tuesday August 20, 2013 @07:55PM (#6247374)
Basically, yes.