Add a handler to be notified of the result. WARNING : this is a terminal operation. If several handlers are registered, there is no guarantee that they will be invoked in order of registration. @param handler the handler that will be called with the result @retu
(Handler<AsyncResult<T>> handler)
| 292 | * @return a reference to this, so it can be used fluently |
| 293 | */ |
| 294 | default Future<T> onComplete(Handler<AsyncResult<T>> handler) { |
| 295 | Objects.requireNonNull(handler, "No null handler accepted"); |
| 296 | return onComplete((value, err) -> handler.handle(this)); |
| 297 | } |
no outgoing calls