Created
June 1, 2020 09:40
-
-
Save neworld/648f31d9a5c6007de727cd72e2f87490 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
@Test(timeout = 10000) | |
fun secondSubscription_returnsImmediate() { | |
val subject = PublishSubject.create<Int>() | |
val cachedSubject = subject.successOnlyCache() | |
cachedSubject.test() //first subscription | |
cachedSubject.test() //second subscription | |
//this method will never finishes if subscription is blocked. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment