public interface Sleeper
Modifier and Type | Method and Description |
---|---|
void |
sleep(java.time.Duration duration)
Sleeps for the given duration.
|
void sleep(java.time.Duration duration) throws InterruptedException
duration
- the duration to sleep forInterruptedException
- if the sleep is interruptedCopyright © 2023. All Rights Reserved.