I'm building a library that's a wrapper for a REST API.
The generated request classes already contained synchronous get, post, patch, put, delete methods.
These methods are generated depending on whether the corresponding HTTP method is supported by the API endpoint that maps to the current request class.
We recently decided to add an asynchronous API surface to the library, returning CompletableFutures of the response type instead of the response type directly.
I was wondering whether there was a naming convention for such methods like in dotnet with the "Async" suffix?
this post would suggest to use subscribe or observe, but observePost
or subscribeToPost
doesn't sound very intuitive.