Skip to content

Commit

Permalink
Rename method names in virtual threads doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kdnakt committed Nov 17, 2022
1 parent 1241101 commit 151a14a
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 151a14a

Please sign in to comment.