UNPKG

process-rerun

Version:

The purpose of this library is - build simple and flexible interface for parallel command execution with rerun (on fail) possibility

8 lines 290 B
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)); } export { getPollTime, sleep }; //# sourceMappingURL=helpers.js.map