I'm newbie and I'm learning Spring Flux. I couldn't understand the Following: Watermelon is being printed here:
Flux<String> fruitFlux = Flux.just("Apple", "Banana", "Orange").concatWith(Flux.just("Watermelon"));
fruitFlux.subscribe( System.out::println);
But when using the following code, it doesn't get printed:
Flux<String> fruitFlux = Flux.just("Apple", "Banana", "Orange");
fruitFlux.concatWith(Flux.just("Watermelon"));
fruitFlux.subscribe( System.out::println);
Shouldn't those two code blocks be exactly the same?