Skip to content

Commit d87dcb8

Browse files
cescoffiergastaldi
authored andcommitted
List specific guides about virtual threads
The list was not written yet (there was a TODO). This commit adds the list of dedicated guides about virtual threads.
1 parent d3a055f commit d87dcb8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/src/main/asciidoc/scheduler-reference.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ If the xref:smallrye-metrics.adoc[SmallRye Metrics extension] is present, then a
417417

418418
If `quarkus.scheduler.tracing.enabled` is set to `true` and the xref:opentelemetry.adoc[OpenTelemetry extension] is present then the `@io.opentelemetry.instrumentation.annotations.WithSpan` annotation is added automatically to every `@Scheduled` method. As a result, each execution of this method has a new `io.opentelemetry.api.trace.Span` associated.
419419

420+
[[virtual_threads]]
420421
== Run @Scheduled methods on virtual threads
421422

422423
Methods annotated with `@Scheduled` can also be annotated with `@RunOnVirtualThread`.

docs/src/main/asciidoc/virtual-threads.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,12 @@ It will either reduce the chance for the other virtual thread to run or will sta
8080

8181
In Quarkus, the support of virtual thread is implemented using the link:{runonvthread}[@RunOnVirtualThread] annotation.
8282
This section briefly overviews the rationale and how to use it.
83-
There are dedicated guides for extensions supporting that annotation, such as // TODO.
83+
There are dedicated guides for extensions supporting that annotation, such as:
84+
85+
- xref:./resteasy-reactive-virtual-threads.adoc[Virtual threads in REST applications]
86+
- xref:./messaging-virtual-threads.adoc[Virtual threads in reactive messaging applications]
87+
- xref:./grpc-virtual-threads.adoc[Virtual threads in gRPC services]
88+
- xref:./scheduler-reference.adoc#virtual_threads[Execute periodic tasks on virtual threads]
8489

8590
[[why-not]]
8691
=== Why not run everything on virtual threads?

0 commit comments

Comments
 (0)