Skip to content

Instantly share code, notes, and snippets.

@danielkec
Created March 20, 2020 14:02
Show Gist options
  • Select an option

  • Save danielkec/7b54b71f0d7f5f3d0d345a16221a5ccc to your computer and use it in GitHub Desktop.

Select an option

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