-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
CompletableFuture smart dispatch support #30121
Conversation
franz1981
commented
Jan 2, 2023
•
edited
Loading
edited
- resolves CompletableFuture smart dispatch support #30133
@cescoffier Not sure I made it right, I see lot of duplicate codes :/ The reason why I've done it is on this Quarkus profiling workshop snippet where I've been forced to use |
What's the rationale? We strongly recommend Uni in this case (for plenty of reason including context handling). |
So basically, do you have the same issue when using Uni instead of CS? |
The issue is related of how we recognize non-blocking endpoint: CS isn't CF and it's going to use a thread pool for that, that's unexpected from a user pov |
Ah ok, it makes sense (even if I would prefer users to move away from CS/CF as fast as they can) |
Yep and still my changes are not correctly handling polymorphism there (if someone impl their own CompletionStage children my changes won't help to detect it), given that's not an high prio thing I'm happy to close it unless can still be useful to someone other then me and Mario for the workshop: let me know and I can happily close this ;) |
Also, do we really want to do this when RESTEasy Reactive already has support for it? |
4f2966b
to
8f2c20f
Compare
@geoand Renaming should look better and I've opened an enhancement request: cannot tell if it's a bug or a missing feature really |
0f700af
to
c923eec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This comment has been minimized.
This comment has been minimized.
CI is complaining :( |
yep, let me check what going on |
@geoand it seems that |
Servlet is always meant to run on a worker thread. I am looking for the piece of code that checks this |
Oki so I can just disable that test for the servlet use case |
Yeah, that makes sense |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I fixed the formatting issue and rebased the PR onto main. |