Skip to content

Commit

Permalink
Update merge.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt authored Dec 27, 2023
1 parent 8f1cafd commit 51243ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/asynciterable/merge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ export class MergeAsyncIterable<T> extends AsyncIterableX<T> {
nexts[index] = <Promise<MergeResult<IteratorResult<T>>>>NEVER_PROMISE;
active--;
} else {
const iterator$ = iterators[index];
nexts[index] = <Promise<MergeResult<IteratorResult<T>>>>NEVER_PROMISE;
yield value$;
const iterator$ = iterators[index];
nexts[index] = wrapPromiseWithIndex(iterator$.next(), index);
}
}
Expand Down

0 comments on commit 51243ce

Please sign in to comment.