-
I would like to use virtual threads for blocking and/or I/O related operations where pre JDK virtual threads were platform threads. How can I configure Quarkus to use virtual threads for the following cases: `@Asynchronous @Inject |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
/cc @cescoffier (virtual-threads), @ozangunalp (virtual-threads) |
Beta Was this translation helpful? Give feedback.
-
Where does the If you are looking to schedule tasks on VTs you can inject the virtual threads executor service |
Beta Was this translation helpful? Give feedback.
-
https://jakarta.ee/specifications/platform/10/apidocs/jakarta/enterprise/concurrent/asynchronous @dhoffer I don't think Quarkus supports For Virtual Thread support see |
Beta Was this translation helpful? Give feedback.
-
Yes I was thinking the same thing, combine @asynchronous
<https://github.com/asynchronous> and @RunOnVirtualThreads no need for
something new/different. To me this is a required feature of Quarkus as
why should one part/feature only use platform threads?
…-David
On Mon, Sep 2, 2024 at 11:34 PM Clement Escoffier ***@***.***> wrote:
IT would only make sense if you combine @asynchronous
<https://github.com/asynchronous> and @RunOnVirtualThreads, otherwise it
would be very dangerous.
—
Reply to this email directly, view it on GitHub
<#42448 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAL7BL6PLOBCDDLJWZ76ZX3ZUVC6ZAVCNFSM6AAAAABMIN7YWOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANJSG42DEMA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
@ozangunalp
https://jakarta.ee/specifications/platform/10/apidocs/jakarta/enterprise/concurrent/asynchronous
@dhoffer I don't think Quarkus supports
@Asynchronous
but you can inject a managed executor see https://quarkus.io/guides/context-propagation#usage-example-for-completionstage.For Virtual Thread support see