Skip to content

Commit

Permalink
Merge pull request #1558 from avivmu/main
Browse files Browse the repository at this point in the history
replace deprecated method & fix method name (workshop)
  • Loading branch information
jponge authored Mar 19, 2024
2 parents 3e1861e + 97f75a4 commit 16c53ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static void main(String[] args) {

Uni.combine()
.all().unis(first, second, third)
.combinedWith((a, b, c) -> a + b + c)
.with((a, b, c) -> a + b + c)
.subscribe().with(System.out::println);

Uni.combine()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static void main(String[] args) throws InterruptedException {
.uni(secondGenerator::next).atMost(10);

Multi.createBy().combining().streams(first, second)
.asTuple() // also try lastItems()
.asTuple() // also try latestItems()
.onTermination().invoke(latch::countDown)
.subscribe().with(System.out::println);

Expand Down

0 comments on commit 16c53ab

Please sign in to comment.