Skip to content

Commit

Permalink
Merge pull request quarkusio#36369 from cescoffier/list-virtual-threa…
Browse files Browse the repository at this point in the history
…d-documentation
  • Loading branch information
gastaldi authored Oct 10, 2023
2 parents 9d364d2 + d87dcb8 commit 69247f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/src/main/asciidoc/scheduler-reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ If the xref:smallrye-metrics.adoc[SmallRye Metrics extension] is present, then a

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.

[[virtual_threads]]
== Run @Scheduled methods on virtual threads

Methods annotated with `@Scheduled` can also be annotated with `@RunOnVirtualThread`.
Expand Down
7 changes: 6 additions & 1 deletion docs/src/main/asciidoc/virtual-threads.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ It will either reduce the chance for the other virtual thread to run or will sta

In Quarkus, the support of virtual thread is implemented using the link:{runonvthread}[@RunOnVirtualThread] annotation.
This section briefly overviews the rationale and how to use it.
There are dedicated guides for extensions supporting that annotation, such as // TODO.
There are dedicated guides for extensions supporting that annotation, such as:

- xref:./resteasy-reactive-virtual-threads.adoc[Virtual threads in REST applications]
- xref:./messaging-virtual-threads.adoc[Virtual threads in reactive messaging applications]
- xref:./grpc-virtual-threads.adoc[Virtual threads in gRPC services]
- xref:./scheduler-reference.adoc#virtual_threads[Execute periodic tasks on virtual threads]

[[why-not]]
=== Why not run everything on virtual threads?
Expand Down

0 comments on commit 69247f1

Please sign in to comment.