public class FutureHelper extends Object
FutureHelper
Constructor and Description |
---|
FutureHelper() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
quietGet(Future<T> future)
Quietly perform the get() on a future
|
static void |
unwrapAndThrow(Throwable ex)
Properly unwraps ExecutionException, throwing the relevant original cause.
|
public static <T> T quietGet(Future<T> future)
public static void unwrapAndThrow(Throwable ex)
Copyright © 2013. All Rights Reserved.