Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when.join different types #8

Open
diegooliveira opened this issue Jan 9, 2017 · 0 comments
Open

when.join different types #8

diegooliveira opened this issue Jan 9, 2017 · 0 comments

Comments

@diegooliveira
Copy link

diegooliveira commented Jan 9, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant