UNPKG

@evil-gauss/core

Version:
22 lines 589 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IntervalStoreAbstract = void 0; class IntervalStoreAbstract { timeoutMs; interval; constructor(timeoutMs) { this.timeoutMs = timeoutMs; this.onInit(); } // * lifecycle onInit() { this.interval = setInterval(() => { this.intervalCallback(); }, this.timeoutMs); } onDestroy() { clearInterval(this.interval); } } exports.IntervalStoreAbstract = IntervalStoreAbstract; //# sourceMappingURL=interval.store.abstract.js.map