mirror of https://github.com/IoTcat/cron-git.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
359 B
24 lines
359 B
5 years ago
|
var lt = require('./')
|
||
|
|
||
|
/*
|
||
|
Timeouts
|
||
|
*/
|
||
|
lt.setTimeout(function() {
|
||
|
console.log('in a long time')
|
||
|
}, Number.MAX_VALUE)
|
||
|
|
||
|
lt.setTimeout(function() {
|
||
|
console.log('2 seconds')
|
||
|
}, 2000)
|
||
|
|
||
|
/*
|
||
|
Intervals
|
||
|
*/
|
||
|
lt.setInterval(function() {
|
||
|
console.log('long interval')
|
||
|
}, Number.MAX_VALUE)
|
||
|
|
||
|
lt.setInterval(function() {
|
||
|
console.log("2 second interval")
|
||
|
}, 2000)
|