blob: d30661716bd2b21e83a0c40bb41a56f186b671cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
'use strict';
const common = require('../common');
const Timer = process.binding('timer_wrap').Timer;
const kOnTimeout = Timer.kOnTimeout;
const t = new Timer();
t.start(1000);
t[kOnTimeout] = common.mustCall(function() {
console.log('timeout');
t.close();
});
|