Skip to content

Commit

Permalink
refactor(async): prepare for noUncheckedIndexedAccess (#4118)
Browse files Browse the repository at this point in the history
* refactor(async): prepare for noUncheckedIndexedAccess

* revert(data_structures): the data_structures refactor since its not in scope for this PR
  • Loading branch information
syhol committed Jan 5, 2024
1 parent 3018514 commit 8eb433b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions async/mux_async_iterator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ export class MuxAsyncIterator<T> implements AsyncIterable<T> {
await this.#signal.promise;

// Note that while we're looping over `yields`, new items may be added.
for (let i = 0; i < this.#yields.length; i++) {
const { iterator, value } = this.#yields[i];
for (const { iterator, value } of this.#yields) {
yield value;
this.#callIteratorNext(iterator);
}
Expand Down

0 comments on commit 8eb433b

Please sign in to comment.