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) {
|
||||
try {
|
||||
return future.get(timeout, unit);
|
||||
} catch (ExecutionException ex) {
|
||||
throw new RuntimeException(ex.getCause());
|
||||
} catch (Exception ex) {
|
||||
throw new RuntimeException(ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user