mirror of
https://github.com/Unitech/pm2.git
synced 2026-02-01 16:57:09 +00:00
9 lines
180 B
JavaScript
9 lines
180 B
JavaScript
var timer = setInterval(function(){
|
|
console.log('tick', Date.now());
|
|
}, 100);
|
|
|
|
setTimeout(function(){
|
|
clearInterval(timer);
|
|
throw new Error('error has been caught')
|
|
}, 350);
|