• dQw4w9WgXcQ@lemm.ee
        link
        fedilink
        arrow-up
        11
        ·
        1 year ago

        Mono.just(“Penetrating system”) .doOnNext(System.out::println) .delayElement(Duration.ofSeconds(1)) .flatMapMany(() -> Flux.just(“20%”, “40%”, “60%”, “80%”, “100%”)) .map(“Hacking NASA %s”::format) .doOnNext(System.out::println) .delayElement(Duration.ofSeconds(1)) .subscribe();

        Better?