public final class Threads
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
sleep(long millis)
Causes the current Thread to sleep.
|
public static boolean sleep(long millis)
In addition to Thread.sleep(long) this function automatically handles possible InterruptedExceptions by handling and discarding the exception.
millis - The sleep timeout.true if the sleep operation was interrupted.Thread.sleep(long)