UNPKG

recoder-code

Version:

🚀 AI-powered development platform - Chat with 32+ models, build projects, automate workflows. Free models included!

18 lines • 540 B
import { Observable } from '../Observable'; export function scheduleArray(input, scheduler) { return new Observable(function (subscriber) { var i = 0; return scheduler.schedule(function () { if (i === input.length) { subscriber.complete(); } else { subscriber.next(input[i++]); if (!subscriber.closed) { this.schedule(); } } }); }); } //# sourceMappingURL=scheduleArray.js.map