routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+18
@@ -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
|
||||
Reference in New Issue
Block a user