We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f1cafd commit 51243ceCopy full SHA for 51243ce
src/asynciterable/merge.ts
@@ -42,9 +42,8 @@ export class MergeAsyncIterable<T> extends AsyncIterableX<T> {
42
nexts[index] = <Promise<MergeResult<IteratorResult<T>>>>NEVER_PROMISE;
43
active--;
44
} else {
45
- const iterator$ = iterators[index];
46
- nexts[index] = <Promise<MergeResult<IteratorResult<T>>>>NEVER_PROMISE;
47
yield value$;
+ const iterator$ = iterators[index];
48
nexts[index] = wrapPromiseWithIndex(iterator$.next(), index);
49
}
50
0 commit comments