CompositeFuture.join(future1, future2, future3).setHandler(ar -> {
if (ar.succeeded()) {
// All succeeded
} else {
// All completed and at least one failed
}
});
Is there any better example for CompositeFuture? I can't get the code following code working:CompositeFuture.join(future1, future2, future3).setHandler(ar -> {
if (ar.succeeded()) {
// All succeeded
} else {
// All completed and at least one failed
}
});
- Must the futures be auf type CompletableFuture?
- In which thread are the futures executed? I want all futures to run in the working pool
- How to start the excecution of the futures or the composite?
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/f64f69ac-c7b3-4a84-8079-252508dfd51f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.