@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
13 lines • 454 B
JavaScript
export var StandardIntervalCheckLoop = {
start: function (_a) {
var checkFunction = _a.checkFunction, onChange = _a.onChange, _b = _a.delayMs, delayMs = _b === void 0 ? 500 : _b;
return setInterval(function () {
if (checkFunction())
onChange();
}, 500);
},
stop: function (checkId) {
clearInterval(checkId);
}
};
//# sourceMappingURL=StandardIntervalCheckLoop.js.map