Closed npiguet closed 3 years ago
I just noticed there was another PR (#57) for the same thing, which was closed with the comment:
Now that we have allAsMap (#70) I'll close this. If we want a collector version of it, we can add that as another PR
... I guess this is the one.
I've fixed the source of the nit comments.
OK, now this LGTM!
Adds CompletableFutures.joinMap().
joinMap()
is toallAsMap()
asjoinList()
is toallAsList()
: a stream collector that does the same operation without forcing the user to use a temporary variable. This is especially useful sinceMap
declarations with both key and value type are considerably more visually cluttered thanList
declarations.