Skip to content

Instantly share code, notes, and snippets.

@BartoszJarocki
Created May 14, 2017 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BartoszJarocki/6f2a7250693bbaa4a33d504ffd36d4c0 to your computer and use it in GitHub Desktop.
Save BartoszJarocki/6f2a7250693bbaa4a33d504ffd36d4c0 to your computer and use it in GitHub Desktop.
public class RemoteRepository implements Repository {
...
public Observable<List<Contributor>> contributors(String owner, String repo) {
return githubApi.contributors(owner, repo)
.flatMap(response -> {
...
.compose(threadConfiguration.applySchedulers());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment