Skip to content

Instantly share code, notes, and snippets.

@janjongboom
Created September 5, 2012 09:08
Show Gist options
  • Save janjongboom/3633786 to your computer and use it in GitHub Desktop.
Save janjongboom/3633786 to your computer and use it in GitHub Desktop.
is node blocking
var n = +new Date();
setTimeout(function () {
if (+new Date() - n > 2) console.log("BLOCKINGGGG");
n=+new Date()
}, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment