is it possible to send the same object to subscribers in Rx repeatedly? For exmaple this code(on Kotlin):
val exmp = listOf("А")
var observable = exmp.toObservable()
observable.subscribeBy(
onNext = {
it + "1"
println(it)
},
onError = { it.printStackTrace() },
onComplete = { println("Done!") }
)
I try to send string value "A" repeatedly to method onNext() and get "A111111".
Method replay() of Rx library as I understand starting sending date again for new subsribers. In circle for
date from observable not changing, just method is called several times