Created
October 14, 2016 06:05
-
-
Save inyl/f313297e6f435d370cc8afd76f722584 to your computer and use it in GitHub Desktop.
RxJava await example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Completable som1 = Completable.fromAction(() -> System.out.println("Hello World")).subscribeOn(Schedulers.io()); | |
Completable som2 = Completable.fromAction(() -> System.out.println("Foo bar")).subscribeOn(Schedulers.io()); | |
Completable.merge(som1, som2).await(); | |
System.out.println("await done"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment