Medium Backpressure
Sample Latest Values
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 1 through 10, then use take(3) to only consume the first 3 elements (simulating a slow consumer). Subscribe and print.
take(n) cancels the subscription after receiving n elements — a simple form of backpressure.
Esperado
1 2 3 Cancelled!
Main.kt