News for hackers. Stuff that matters.
Re:On problems with threads in Node.js by xylem on Thursday April 23, 2015 @06:27AM (#9425782)
Oops, thanks for that - seems the results from the first run of the example somehow got lost in the final version and I didn't notice.

The order of the output is dependent on when each call finished - they run in parallel, so it's not guaranteed that functions will end in the order they were invoked.

Re:On problems with threads in Node.js by mjpa on Thursday April 23, 2015 @06:37AM (#9425802)
Ah yes, so they do. My lack of sleep is showing!

For some reason I was thinking the readdir would run in series so output would go up by ~1s each time.