Search⌘ K

Cold vs. Hot Observables

Explore the fundamental differences between cold and hot observables in RxJava. Understand how cold observables emit sequences when subscribed to, while hot observables emit independently of subscribers. This lesson helps you determine the appropriate observable types for network operations, event handling, and more.

Cold observable

An Observable is considered cold if it is not actively emitting items. It only starts emitting items when it is subscribed to. Each subscription to a cold Observable will cause it to emit the underlying sequence from beginning to end for each Observer.

Note: The exact values of the sequence may differ for each Observer, depending on the underlying action the ...