process-rerun
Version:
The purpose of this library is - build simple and flexible interface for parallel command execution with rerun (on fail) possibility
11 lines • 394 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPollTime = getPollTime;
exports.sleep = sleep;
function getPollTime(timeVal) {
return typeof timeVal === 'number' && !Number.isNaN(timeVal) && Number.isFinite(timeVal) ? timeVal : 1000;
}
function sleep(time) {
return new Promise(res => setTimeout(res, time));
}
//# sourceMappingURL=helpers.js.map