Medium Backpressure
Sample Latest Values
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.
Expected
1 2 3 Cancelled!
Main.kt