Skip to content

Instantly share code, notes, and snippets.

@walidum
Created May 4, 2021 11:32
Show Gist options
  • Save walidum/24cfb10eef225b7baa0c94b2a508c5bc to your computer and use it in GitHub Desktop.
Save walidum/24cfb10eef225b7baa0c94b2a508c5bc to your computer and use it in GitHub Desktop.
all
List<Mono<Province>> list = Stream.of(9, 16, 19, 23, 31, 39)
.map(i -> client.get().uri("/province/{id}", i)
.retrieve().bodyToMono(Province.class))
.collect(Collectors.toList());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment