Hi, I have two promises with different outcomes. When I try to join then I receive a compile error due the way the method When#join uses the type parameter.
Promisse<User> user = loadUser(email);
Promisse<LastCharge> lastCharge = loadLastCharge(email);
when.join(user, lastCharge)
// ^- Error here
.then(result -> {
return null;
});
The vertx API CompositeFuture#join has some helper method that uses different type parameter for each position, allowing that kind of code. There are any plan to have something in the same line for when.java?
Thanks.
Hi, I have two promises with different outcomes. When I try to join then I receive a compile error due the way the method When#join uses the type parameter.
The vertx API CompositeFuture#join has some helper method that uses different type parameter for each position, allowing that kind of code. There are any plan to have something in the same line for when.java?
Thanks.