mirror of
https://github.com/jlengrand/vert.x.git
synced 2026-03-10 08:51:19 +00:00
Catch throwable instead of exception in Future#future(Handler) factory method
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user