Skip to content

Commit 246c1a9

Browse files
committed
Revert "avoid mutation during iteration when resolving pending waitpoints"
This reverts commit 87b0ce1.
1 parent 467f9de commit 246c1a9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/core/src/v3/runtime/sharedRuntimeManager.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,7 @@ export class SharedRuntimeManager implements RuntimeManager {
259259
}
260260

261261
private resolvePendingWaitpoints(): void {
262-
// Clone keys first to avoid mutation-during-iteration hazards
263-
for (const resolverId of Array.from(this.waitpointsByResolverId.keys())) {
264-
const waitpoint = this.waitpointsByResolverId.get(resolverId);
265-
266-
if (!waitpoint) {
267-
continue;
268-
}
269-
262+
for (const [resolverId, waitpoint] of this.waitpointsByResolverId.entries()) {
270263
this.resolveWaitpoint(waitpoint, resolverId);
271264
}
272265
}

0 commit comments

Comments
 (0)