Catch throwable instead of exception in Future#future(Handler) factory method

This commit is contained in:
Julien Viet
2019-10-29 20:58:02 +01:00
parent d625c10d6b
commit 8a74e1544b

View File

@@ -39,7 +39,7 @@ public interface Future<T> extends AsyncResult<T> {
Promise<T> promise = Promise.promise();
try {
handler.handle(promise);
} catch (Exception e){
} catch (Throwable e){
promise.tryFail(e);
}
return promise.future();