This commit is contained in:
@@ -121,6 +121,8 @@ public class RetResult<T> implements Serializable{
|
|||||||
public static <T> RetResult<T> get(CompletableFuture<RetResult<T>> future, long timeout, TimeUnit unit) {
|
public static <T> RetResult<T> get(CompletableFuture<RetResult<T>> future, long timeout, TimeUnit unit) {
|
||||||
try {
|
try {
|
||||||
return future.get(timeout, unit);
|
return future.get(timeout, unit);
|
||||||
|
} catch (ExecutionException ex) {
|
||||||
|
throw new RuntimeException(ex.getCause());
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
throw new RuntimeException(ex);
|
throw new RuntimeException(ex);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user