nodejs/test/parallel/test-timers-immediate-unref...

10 lines
231 B
JavaScript
Raw Normal View History

2022-08-16 11:12:47 +08:00
'use strict';
const common = require('../common');
// This immediate should not execute as it was unrefed
// and nothing else is keeping the event loop alive
setImmediate(() => {
setImmediate(common.mustNotCall()).unref();
});