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.

18 lines
281 B

var common = require('../common');
var assert = require('assert');
var Timer = process.binding('timer_wrap').Timer;
var t = new Timer();
t.ontimeout = function() {
console.log('timeout');
t.close();
};
t.onclose = function() {
console.log('close');
};
t.start(1000, 0);