-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Don't try to cancel already completed future. If AHC is used concurrently with rxjava retrofit call adapter using `flatMap(Function, maxConcurrency)` warning messages are being logged about future not being able to be cancelled, because it's already complete. This patch remedies situation by first checking whether future has been already completed. * Added ability to fetch async http client instance from a supplier. Sometimes it's handy not to tie call factory to particular http client instance, but to fetch it from a supplier. This patch adds ability to fetch http client from a supplier while retaining ability to use particular, fixed http client instance.
- Loading branch information
Showing
3 changed files
with
79 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters