Advertisement
Guest User

Untitled

a guest
Jan 24th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1.         testRepo.save(actualValue).flatMap(new Function() {
  2.             @Override
  3.             public Single apply(@NonNull Object o) throws Exception {
  4.                 Log.v("tag_info", "save success");
  5.                 return testRepo.first(null);
  6.             }
  7.         }).subscribe(new Consumer() {
  8.             @Override
  9.             public void accept(Object o) throws Exception {
  10.                 Log.v("tag_info", "get success");
  11.             }
  12.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement