setTimeout - delayed execution


Delayed execution, callback function.


examples/basic/with_timeout.js
setTimeout(function() {
    console.log("world");
}, 1000);
console.log("hello");

$ node examples/basic/with_timeout.js
hello
world