Is there a library in Java that does the following? A thread should repeatedly sleep for x milliseconds until a condition becomes true or the max t
thread
sleep
Awaitility offers a simple and clean solution:
await().atMost(10, SECONDS).until(() -> condition());