Skip to content

Commit 73d0887

Browse files
waiting for long periods of time causes GC build up
1 parent 94790ae commit 73d0887

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/rush-lib/src/logic/operations/AsyncOperationQueue.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const UNASSIGNED_OPERATION: 'UNASSIGNED_OPERATION' = 'UNASSIGNED_OPERATIO
1717

1818
export type IOperationIteratorResult =
1919
| OperationExecutionRecord
20-
| { weight: 0; status: typeof UNASSIGNED_OPERATION };
20+
| { weight: 1; status: typeof UNASSIGNED_OPERATION };
2121

2222
/**
2323
* Implementation of the async iteration protocol for a collection of IOperation objects.
@@ -166,7 +166,7 @@ export class AsyncOperationQueue
166166
// remote executing operation which is not ready to process.
167167
if (queue.some((operation) => operation.status === OperationStatus.RemoteExecuting)) {
168168
waitingIterators.shift()!({
169-
value: { weight: 0, status: UNASSIGNED_OPERATION },
169+
value: { weight: 1, status: UNASSIGNED_OPERATION },
170170
done: false
171171
});
172172
}

0 commit comments

Comments
 (0)