-
-
Save SODA1127/fe660e4da4a7ffa5ea20609dc84fd017 to your computer and use it in GitHub Desktop.
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
fun main(args: Array<String>) { | |
val connectableObservable = listOf("String 1","String 2","String 3","String 4","String 5").toObservable() | |
.publish()//1 | |
connectableObservable. | |
subscribe { println("Subscription 1: $it") }//2 | |
connectableObservable.map(String::reversed)//3 | |
.subscribe { println("Subscription 2 $it")}//4 | |
connectableObservable.connect()//5 | |
connectableObservable. | |
subscribe { println("Subscription 3: $it") } //6 구독을 받지못함 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment