public class Durations
extends java.lang.Object
Constructor and Description |
---|
Durations() |
Modifier and Type | Method and Description |
---|---|
static boolean |
await(java.util.concurrent.CountDownLatch latch,
Duration time) |
static <T> Maybe<T> |
get(java.util.concurrent.Future<T> t,
CountdownTimer timer) |
static <T> Maybe<T> |
get(java.util.concurrent.Future<T> t,
Duration timeout) |
static void |
join(java.lang.Thread thread,
Duration time) |
public static boolean await(java.util.concurrent.CountDownLatch latch, Duration time) throws java.lang.InterruptedException
java.lang.InterruptedException
public static void join(java.lang.Thread thread, Duration time) throws java.lang.InterruptedException
java.lang.InterruptedException
public static <T> Maybe<T> get(java.util.concurrent.Future<T> t, CountdownTimer timer)