Skip to content

Commit 112535f

Browse files
committed
launch a new job for each testBlock rather than one for both
1 parent d3f2642 commit 112535f

File tree

1 file changed

+4
-6
lines changed
  • src/main/kotlin/com/lambda/interaction/construction/simulation/checks

1 file changed

+4
-6
lines changed

src/main/kotlin/com/lambda/interaction/construction/simulation/checks/PlaceSim.kt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,10 @@ class PlaceSim private constructor(simInfo: ISimInfo)
9191
private suspend fun AutomatedSafeContext.simPlacements() =
9292
supervisorScope {
9393
preProcessing.sides.forEach { side ->
94-
launch {
95-
val neighborPos = pos.offset(side)
96-
val neighborSide = side.opposite
97-
testBlock(neighborPos, neighborSide, this@supervisorScope)
98-
testBlock(pos, side, this@supervisorScope)
99-
}
94+
val neighborPos = pos.offset(side)
95+
val neighborSide = side.opposite
96+
launch { testBlock(neighborPos, neighborSide, this@supervisorScope) }
97+
launch { testBlock(pos, side, this@supervisorScope) }
10098
}
10199
}
102100

0 commit comments

Comments
 (0)