Last active
November 17, 2018 10:38
-
-
Save rohmanhakim/162fe2ec9c93fc10633b0bf3540f2094 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
val observable = Observable.just("some event") | |
.map { | |
Thread.sleep(randomInt()) | |
System.currentTimeMillis() | |
} | |
val sub1 = observable.subscribe({ println("sub1 got : $it") },{}) | |
val sub2 = observable.subscribe({ println("sub2 got : $it") },{}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment