Created
October 25, 2020 16:50
-
-
Save vinsguru/b3326226bac2689cadfeed4e547561ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//First observer. takes 1 ms to process each element | |
integerFlux.delayElements(Duration.ofMillis(1)).subscribe(i -> System.out.println("First :: " + i)); | |
//Second observer. takes 2 ms to process each element | |
integerFlux.delayElements(Duration.ofMillis(2)).subscribe(i -> System.out.println("Second:: " + i)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment