Skip to content

Commit

Permalink
Fix compilation error in virtual threads doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kdnakt committed Nov 13, 2022
1 parent 2e04ead commit 1241101
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/main/asciidoc/virtual-threads.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public class FortuneResource {
var fortunes = repository.findAllBlocking();
// we get the list of quotes
var quotes = getQuotes(fortunes.size()).await().indefinitely();
var quotes = getQuotesAsync(fortunes.size()).await().indefinitely();
// we append each quote to each fortune
for(int i=0; i < fortunes.size();i ++){
Expand All @@ -250,7 +250,7 @@ public class FortuneResource {
// once we get a result for fortunes,
// we know its size and can thus query the right number of quotes
var quotes = fortunes.onItem().transformToUni(list -> getQuotes(list.size()));
var quotes = fortunes.onItem().transformToUni(list -> getQuotesAsync(list.size()));
// we now need to combine the two reactive streams
// before returning the result to the user
Expand All @@ -273,7 +273,7 @@ public class FortuneResource {
var fortunes = repository.findAllAsyncAndAwait();
//we get the list of quotes
var quotes = getQuotes(fortunes.size()).await().indefinitely();
var quotes = getQuotesAsync(fortunes.size()).await().indefinitely();
//we append each quote to each fortune
for(int i=0; i < fortunes.size();i ++){
Expand Down

0 comments on commit 1241101

Please sign in to comment.