Repository navigation
feature/future - #610
feature/future#610
Conversation
|
For my learning, why rename the HTTP request methods such as send() or post() to futureSend() or futurePost(). |
|
Nikitha Chettiar (@nikithauc) thanks for reviewing the PR. |
|
as a follow up, I decided to ask the question to the java community directly, let's see what comes back https://stackoverflow.com/questions/65737878/java-naming-conventions-for-methods-returning-futures |
|
Since we're returning a CompletableFuture, I don't think we need "future" in the method name. I do like having Async in the method name like commenter in the SO post said. But then I'm biased. We should consider keeping the sync functions and mark them as obsolete, while gaining the futures based methods. Then customers can plan on moving to the future implementation. |
|
Yeah, I'll wait a couple of more days before merging to see if anything else pops as an answer to my question on SO. |
|
For reviewer convenience: |
Michael Mainer (MIchaelMainer)
left a comment
There was a problem hiding this comment.
Sampled through the other generated changes. Looks good.
fixes #533
replaces the callback API surface by futures for async operations
TODO:
Here is an example of the experience it enables:
Before
After