public interface LoopExtension
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SLEEP_NANOS_IN_TIGHT_LOOP |
| Modifier and Type | Method and Description |
|---|---|
static void |
executeWithoutTightLoop(Runnable action) |
static void |
executeWithoutTightLoop(Runnable action,
int ms,
int nanos) |
static <V> V |
executeWithoutTightLoop(Supplier<V> func) |
static <V> V |
executeWithoutTightLoop(Supplier<V> func,
int ms,
int nanos) |
static void |
preventTightLoop() |
static void |
preventTightLoop(int ms,
int nanos) |
static final int DEFAULT_SLEEP_NANOS_IN_TIGHT_LOOP
static <V> V executeWithoutTightLoop(Supplier<V> func) throws InterruptedException
InterruptedExceptionstatic <V> V executeWithoutTightLoop(Supplier<V> func, int ms, int nanos) throws InterruptedException
InterruptedExceptionstatic void executeWithoutTightLoop(Runnable action) throws InterruptedException
InterruptedExceptionstatic void executeWithoutTightLoop(Runnable action, int ms, int nanos) throws InterruptedException
InterruptedExceptionstatic void preventTightLoop()
throws InterruptedException
InterruptedExceptionstatic void preventTightLoop(int ms,
int nanos)
throws InterruptedException
InterruptedExceptionCopyright © 2018 mydotey.org. All rights reserved.