Skip to content

Commit 8ae55c6

Browse files
committed
comments
1 parent fa54d99 commit 8ae55c6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/sim/executor/execution/engine.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export class ExecutionEngine {
207207
if (this.executing.size > 0) {
208208
const abortPromise = this.getAbortPromise()
209209
if (abortPromise) {
210-
await Promise.race([Promise.race(this.executing), abortPromise])
210+
await Promise.race([...this.executing, abortPromise])
211211
} else {
212212
await Promise.race(this.executing)
213213
}
@@ -217,9 +217,9 @@ export class ExecutionEngine {
217217
private async waitForAllExecutions(): Promise<void> {
218218
const abortPromise = this.getAbortPromise()
219219
if (abortPromise) {
220-
await Promise.race([Promise.all(Array.from(this.executing)), abortPromise])
220+
await Promise.race([Promise.all(this.executing), abortPromise])
221221
} else {
222-
await Promise.all(Array.from(this.executing))
222+
await Promise.all(this.executing)
223223
}
224224
}
225225

0 commit comments

Comments
 (0)