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

Await reactive requests in virtual threads #11583

Open
re-thc opened this issue Feb 10, 2025 · 1 comment
Open

Await reactive requests in virtual threads #11583

re-thc opened this issue Feb 10, 2025 · 1 comment

Comments

@re-thc
Copy link
Contributor

re-thc commented Feb 10, 2025

Feature description

We can mark a method to be "blocking" and it will detect and execute on a virtual thread (provided support).

How do we await for reactive methods inside this context e.g. if that method is only reactive or async e.g. with AWS Netty client (sync clients don't support all the features)?

@yawkat
Copy link
Member

yawkat commented Feb 10, 2025

You can use the reactor APIs, e.g. Mono.from(publisher).block()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants