aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js')
-rw-r--r--node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js b/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js
new file mode 100644
index 0000000..a409116
--- /dev/null
+++ b/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js
@@ -0,0 +1,18 @@
+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 \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage