Build a Cron-Job in Nodejs

added by JavaScript Kicks
3/29/2019 7:48:04 AM

419 Views

setTimeout is the best bet of all Nodejs APIs to use in scheduling execution time of code snippets because it used to defer execution of a function to until a particular time. The setTimeout API takes two parameters: setTimeout(fn, ms) The fn parameter is the callback function that is executed when the time ms has elapsed.


0 comments