Code cleanup

This commit is contained in:
Andrea Cavalli 2023-10-20 12:54:50 +02:00
parent c91507381c
commit a359656ca9

View File

@ -100,10 +100,8 @@ class QueueToConsumer<T> implements IQueueToConsumer<T> {
}
}
preAddQueued.updateAndGet(n -> n > 0 ? n - 1 : 0);
} else {
if (park) {
} else if (park) {
LockSupport.parkNanos(HALF_SECOND_NS);
}
}
}
}