Medium Hot vs Cold Publishers
Replay with Cache
Traducción al español en progresoEl contenido detallado de esta lección aún se está traduciendo. Mientras tanto, se muestra en inglés.
Create a Flux emitting "A", "B", "C" and use .cache() to replay all elements to late subscribers. Subscribe twice and verify both get all values.
cache() replays previously emitted elements to new subscribers.
Esperado
Sub1: A Sub1: B Sub1: C Sub2: A Sub2: B Sub2: C
Main.kt