How do I create a non-blocking asynchronous function? Below is what I\'m trying to achieve but my program is still blocking...
var sys = require(\"sys\"); f
setTimeout will not create a new thread, so the browser will still hang at the infinite loop.
setTimeout
You need to rethink your program structure.