Skip to content

Instantly share code, notes, and snippets.

@mitchtabian
Last active January 22, 2021 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mitchtabian/766d274f592b5b692ed79c16920cb038 to your computer and use it in GitHub Desktop.
Save mitchtabian/766d274f592b5b692ed79c16920cb038 to your computer and use it in GitHub Desktop.
taskObservable.subscribe(new Observer<Task>() {
@Override
public void onSubscribe(Disposable d) {
}
@Override
public void onNext(Task task) { // run on main thread
Log.d(TAG, "onNext: : " + task.getDescription());
}
@Override
public void onError(Throwable e) {
}
@Override
public void onComplete() {
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment