UNPKG

compound-ex4

Version:

Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)

12 lines (10 loc) 216 B
'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); };