Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List specific guides about virtual threads #36369

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
Ladicek marked this conversation as resolved.
Show resolved Hide resolved

- 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