Opal-Estate-Pro/node_modules/timers-ext/test/max-timeout.js
2019-09-13 11:27:52 +07:00

14 lines
217 B
JavaScript
Executable File

"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);
};