function-tree
Version:
When a function is not enough
20 lines (19 loc) • 487 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
function waitFactory(ms) {
function wait(_ref) {
var path = _ref.path;
return new Promise(function (resolve) {
setTimeout(function () {
return resolve(path ? path["continue"]() : null);
}, ms);
});
}
wait.displayName = 'wait - ' + ms + 'ms';
return wait;
}
var _default = exports["default"] = waitFactory;
//# sourceMappingURL=wait.js.map