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.
 
 
 
 
 
 

14 lines
404 B

'use strict';
const common = require('../common');
const timeout = setTimeout(common.mustCall(), 10);
timeout.unref();
// Wrap `close` method to check if the handle was closed
const close = timeout._handle.close;
timeout._handle.close = common.mustCall(function() {
return close.apply(this, arguments);
});
// Just to keep process alive and let previous timer's handle die
setTimeout(() => {}, 50);