Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Replace @ParametersAreNonnullByDefault with @EverythingIsNonNull Oct 6, 2018 Update Jul 4, 2018
pom.xml Next version is 2.6.0 Apr 3, 2019

Guava Adapter

An Adapter for adapting Guava ListenableFuture.


Add GuavaCallAdapterFactory as a Call adapter when building your Retrofit instance:

Retrofit retrofit = new Retrofit.Builder()

Your service methods can now use ListenableFuture as their return type.

interface MyService {
  ListenableFuture<User> getUser();


Download the latest JAR or grab via Maven:


or Gradle:

implementation 'com.squareup.retrofit2:adapter-guava:latest.version'

Snapshots of the development version are available in Sonatype's snapshots repository.

You can’t perform that action at this time.