MCPcopy
hub / github.com/eclipse-vertx/vert.x / onComplete

Method onComplete

vertx-core/src/main/java/io/vertx/core/Future.java:294–294  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 }

Calls

no outgoing calls