public final class ThreadUtils
extends java.lang.Object
| Constructor and Description |
|---|
ThreadUtils()
Deprecated.
TODO Make private in 3.0.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
sleep(java.time.Duration duration)
Sleeps for a guaranteed minimum duration unless interrupted.
|
@Deprecated public ThreadUtils()
public static void sleep(java.time.Duration duration)
throws java.lang.InterruptedException
This method exists because Thread.sleep(100) can sleep for 0, 70, 100 or 200ms or anything else it deems appropriate. Read
Thread.sleep(long, int)} for further interesting details.
duration - the sleep duration.java.lang.InterruptedException - if interrupted.Thread.sleep(long, int)Copyright © 2010 - 2025 Adobe. All Rights Reserved