![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/vreg/node_modules/rxjs/_esm2015/internal/observable/ |
import { Observable } from '../Observable'; import { async } from '../scheduler/async'; import { isNumeric } from '../util/isNumeric'; export function interval(period = 0, scheduler = async) { if (!isNumeric(period) || period < 0) { period = 0; } if (!scheduler || typeof scheduler.schedule !== 'function') { scheduler = async; } return new Observable(subscriber => { subscriber.add(scheduler.schedule(dispatch, period, { subscriber, counter: 0, period })); return subscriber; }); } function dispatch(state) { const { subscriber, counter, period } = state; subscriber.next(counter); this.schedule({ subscriber, counter: counter + 1, period }, period); } //# sourceMappingURL=interval.js.map