File tree Expand file tree Collapse file tree
apps/sim/executor/execution Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments