VerboseCountDownLatch
A CountDownLatch that logs a message on each wait timeout and retries until the latch reaches zero.
Useful for long-running waits where periodic logging is desired to indicate the system is still waiting.
Parameters
Properties
Functions
The verbose await with a message lambda, for Java callers; see the java.time.Duration await taking a String.
The verbose await for Java callers: the overloads taking a Kotlin Duration are compiled under a mangled name that Java cannot call.
Waits repeatedly for the latch to reach zero, logging the result of msg at INFO level each time the timeout expires without the latch being satisfied.
Waits for the CountDownLatch to reach zero, or for the specified duration to elapse.
Executes block and calls CountDownLatch.countDown in a finally block, ensuring the latch is decremented even if the block throws.