RxJava Analogy with 3 lines of Kotlin code

--

Understanding RxJava requires some mental exercise. I’m just try to think of an analogy that differ from Observer pattern, but still resembler RxJava observable and subscriber. Along with that, I provide a simple 3 lines of Kotlin codes that reflect that analogy.

Common RxJava Analogy

--

--