MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / createInputIterator

Function createInputIterator

client/js/src/internal/asyncIteratorRace.test.ts:3–7  ·  view source on GitHub ↗
(generators: AsyncGenerator<T>[])

Source from the content-addressed store, hash-verified

1import { asyncIteratorRace } from './asyncIteratorRace';
2
3async function* createInputIterator<T>(generators: AsyncGenerator<T>[]): AsyncGenerator<AsyncGenerator<T>> {
4 for (const generator of generators) {
5 yield generator;
6 }
7}
8
9async function* createAsyncGenerator<T>(values: T[], delay: number = 0): AsyncGenerator<T> {
10 for (const value of values) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected