I want to schedule a function in a future. This is my code:
var timeout = setTimeout(function() {
function();
console.log("UNO");
}, 5000);
But I don't like this solution, so Anyone know some method in nodejs that I use to schedule a function in the future?