-
Notifications
You must be signed in to change notification settings - Fork 584
Add callback-based method in Channel #215
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
Comments
I suspect we then want an entire new |
…and perhaps an interface, e.g. |
We may not have to rewrite |
Yes please no Future or it would be CompletableFuture if the java version supports it. Even so, the problem is more that we need to have the basic abilities to :
|
I have no problem with rolling with |
RPC response comes from the reading threads and this can cause deadlocks if the client doesn't use CompletableFuture#*async methods. References #215
Even if CompletableFuture is completed in the reading thread, client API (e.g. CompletableStage#then*, Reactor Flux/Mono) provide ways to control the threading behavior. References #215
E.g. in
Channel
:With:
This could allow to build a reactive API and also, combined with NIO, to have a truly non-blocking client (right now RPC calls are serialized, at least at the channel level).
The text was updated successfully, but these errors were encountered: