Skip to content

Instantly share code, notes, and snippets.

@danielkec
Created March 20, 2020 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielkec/7b54b71f0d7f5f3d0d345a16221a5ccc to your computer and use it in GitHub Desktop.
Save danielkec/7b54b71f0d7f5f3d0d345a16221a5ccc to your computer and use it in GitHub Desktop.
Multi.just(1, 2, 3, 4, 5)
.flatMap(i -> Multi.just(i, i))
.limit(4)
.distinct()
.forEach(System.out::println);
> 1
> 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment