Hot Observables

Cold Observables are passive, they don't emit anything until subscribe is called. Hot Observables are contrary to Cold Observables; it doesn't need subscriptions to start emission. While you can compare Cold Observables to CD/DVD recordings, Hot Observables are like TV channels—they continue broadcasting (emitting) their content, irrespective of whether anyone is watching (Observing) it or not.

Hot Observables resemble events more than data. The events may carry data with them, but there is a time-sensitive component where Observers that subscribed lately can miss out previously emitted data. They are specifically useful for UI events while working with Android/JavaFX/Swing. They are also very useful in resembling server requests. ...

Get Reactive Programming in Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.