Skip to content

Commit

Permalink
Merge pull request #29341 from kdnakt/fix-virtual-threads-doc
Browse files Browse the repository at this point in the history
Rename method names in virtual threads doc
  • Loading branch information
geoand authored Nov 18, 2022
2 parents 3c17989 + 151a14a commit c982d97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/virtual-threads.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public class FortuneResource {
@GET
@Path("/quoted-reactive")
public Uni<List<Fortune>> getAllQuoted() {
public Uni<List<Fortune>> getAllQuotedReactive() {
// we first fetch the list of resource and we memoize it
// to avoid fetching it again everytime need it
var fortunes = repository.findAllAsync().memoize().indefinitely();
Expand All @@ -268,7 +268,7 @@ public class FortuneResource {
@GET
@RunOnVirtualThread
@Path("/quoted-virtual-thread")
public List<Fortune> getAllQuotedBlocking() {
public List<Fortune> getAllQuotedVirtualThread() {
//we get the list of fortunes
var fortunes = repository.findAllAsyncAndAwait();
Expand Down

0 comments on commit c982d97

Please sign in to comment.