public interface SleepRobot
| Modifier and Type | Method and Description |
|---|---|
void |
sleep(long milliseconds)
Same as
Thread.sleep(long)}, but without checked exceptions. |
void |
sleep(long duration,
java.util.concurrent.TimeUnit timeUnit)
Same as
Thread.sleep(long), but without checked exceptions. |
void sleep(long milliseconds)
Thread.sleep(long)}, but without checked exceptions.milliseconds - the duration in milliseconds to sleep forvoid sleep(long duration,
java.util.concurrent.TimeUnit timeUnit)
Thread.sleep(long), but without checked exceptions.duration - the duration to sleep fortimeUnit - the unit of time the duration to sleep for is in