question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mutiny Uni.join().first(list) dosn't compile

See original GitHub issue

Describe the bug

    Uni<String> c = Uni.createFrom().item("C");
    Uni<String> d = Uni.createFrom().item("D");
    List<Uni<String>> asList = new ArrayList<>();
    asList.add(c);
    asList.add(d);

    Uni.join().first(asList).withItem();

'Cannot resolve method ‘first(java.util.List<io.smallrye.mutiny.Uni<java.lang.String>>)’

Expected behavior

No response

Actual behavior

doesn’t compile 'Cannot resolve method ‘first(java.util.List<io.smallrye.mutiny.Uni<java.lang.String>>)’

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jpongecommented, Nov 18, 2021

@ennishol There’s a Mutiny 1.2.0 release in the coming days, so it will quickly be available.

0reactions
jpongecommented, Nov 18, 2021

Yes I’m thinking of revisiting generics here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Joining several unis - SmallRye Mutiny
Uni offers the join group to assemble all results from a list of Uni , pick the first one that terminates, or pick...
Read more >
Concurrent asynchronous actions with Mutiny - Quarkus
Just create the Unis representing the services or the asynchronous action you want to achieve and combine them using Uni.combine().all() You can ......
Read more >
Uni.combine().all().unis() v.s. Multi..onItem ... - Stack Overflow
The combination function receives the list of results in the same order as the combined unis. So combining UniA and UniB will produce...
Read more >
Uni (SmallRye Mutiny - Core library 1.1.1 API) - Javadoc.io
Produces a new Uni invoking the given callback when the item event is fired. static UniJoin, join(). Join the results from multiple Uni...
Read more >
Home of Quarkus Cheat-Sheet - GitHub Pages
There is no way to scaffold a project in Gradle but you only need to do: ... toString()); } Uni<List<String>> keys() { return...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found