only:minor API

This commit is contained in:
Andrey 2023-11-10 22:04:25 -05:00
parent c61de7279a
commit b9846841b5
1 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,8 @@ public class SimulatorExecHelper {
AtomicInteger counter = new AtomicInteger();
String prefix = "from console: ";
Consumer<String> PRINT_AND_LOG = string -> {
countDownLatch.countDown();
if (countDownLatch != null)
countDownLatch.countDown();
// looks like this is a performance issue since so many lines are printed? looks like it's helping to not write this?
if (counter.incrementAndGet() < 1000)
System.out.println(prefix + string);