Initial commit of files

This commit is contained in:
2026-02-02 20:02:11 +00:00
parent 695f853c94
commit 46ebe81379
2444 changed files with 576762 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import { Observable } from '../Observable';
import { executeSchedule } from '../util/executeSchedule';
export function scheduleAsyncIterable(input, scheduler) {
if (!input) {
throw new Error('Iterable cannot be null');
}
return new Observable((subscriber) => {
executeSchedule(subscriber, scheduler, () => {
const iterator = input[Symbol.asyncIterator]();
executeSchedule(subscriber, scheduler, () => {
iterator.next().then((result) => {
if (result.done) {
subscriber.complete();
}
else {
subscriber.next(result.value);
}
});
}, 0, true);
});
});
}
//# sourceMappingURL=scheduleAsyncIterable.js.map