Skip to content

Instantly share code, notes, and snippets.

@shelajev
Created January 15, 2016 16:18
Show Gist options
  • Save shelajev/326dd3b741cc1b1f83a5 to your computer and use it in GitHub Desktop.
Save shelajev/326dd3b741cc1b1f83a5 to your computer and use it in GitHub Desktop.
retrofit2-retrofit-async.java
call.enqueue(new Callback<List<Contributor>>() {
@Override
public void onResponse(Response<List<Contributor>> response, Retrofit retrofit) {
// handle success
}
@Override
public void onFailure(Throwable t) {
// handle failure
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment