Files
peya-nodejs-pool/node_modules/timers-ext/test/max-timeout.js
Mark Allen Evans bd7256ec7c checkpoint
2020-10-13 00:35:14 +00:00

14 lines
217 B
JavaScript

"use strict";
module.exports = function (t, a, d) {
var invoked, id;
id = setTimeout(function () {
invoked = true;
}, t);
setTimeout(function () {
a(invoked, undefined);
clearTimeout(id);
d();
}, 100);
};