From e301854caede5f171ddbc7d64a2214fda69e9e55 Mon Sep 17 00:00:00 2001 From: Glyn Normington Date: Tue, 9 Jan 2018 11:14:34 +0000 Subject: [PATCH] Improve documentation of Flux.merge Avoid talking about "inner sources" or "inner publishers" when there is only one collection of sources in sight. Reserve the use of the adjective "inner" for variants of Flux.merge which deal with publishers of publishers. Also, use the term "sources" instead of "publishers" consistently across the related variants of Flux.merge. --- .../main/java/reactor/core/publisher/Flux.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/reactor-core/src/main/java/reactor/core/publisher/Flux.java b/reactor-core/src/main/java/reactor/core/publisher/Flux.java index 329ae3bc3b..fd1290cab3 100644 --- a/reactor-core/src/main/java/reactor/core/publisher/Flux.java +++ b/reactor-core/src/main/java/reactor/core/publisher/Flux.java @@ -1166,7 +1166,7 @@ public static Flux merge(Iterable> sourc /** * Merge data from {@link Publisher} sequences contained in an array / vararg - * into an interleaved merged sequence. Unlike {@link #concat(Publisher) concat}, inner + * into an interleaved merged sequence. Unlike {@link #concat(Publisher) concat}, * sources are subscribed to eagerly. *

* @@ -1188,7 +1188,7 @@ public static Flux merge(Publisher... sources) { /** * Merge data from {@link Publisher} sequences contained in an array / vararg - * into an interleaved merged sequence. Unlike {@link #concat(Publisher) concat}, inner + * into an interleaved merged sequence. Unlike {@link #concat(Publisher) concat}, * sources are subscribed to eagerly. *

* @@ -1211,7 +1211,7 @@ public static Flux merge(int prefetch, Publisher... sources) /** * Merge data from {@link Publisher} sequences contained in an array / vararg - * into an interleaved merged sequence. Unlike {@link #concat(Publisher) concat}, inner + * into an interleaved merged sequence. Unlike {@link #concat(Publisher) concat}, * sources are subscribed to eagerly. * This variant will delay any error until after the rest of the merge backlog has been processed. *

@@ -1294,7 +1294,7 @@ public static Flux mergeSequentialDelayError(Publisher * @@ -1311,7 +1311,7 @@ public static Flux mergeSequential(Publisher... sources) { /** * Merge data from {@link Publisher} sequences provided in an array/vararg - * into an ordered merged sequence. Unlike concat, the inner publishers are subscribed to + * into an ordered merged sequence. Unlike concat, sources are subscribed to * eagerly. Unlike merge, their emitted values are merged into the final sequence in subscription order. *

* @@ -1329,7 +1329,7 @@ public static Flux mergeSequential(int prefetch, Publisher.. /** * Merge data from {@link Publisher} sequences provided in an array/vararg - * into an ordered merged sequence. Unlike concat, the inner publishers are subscribed to + * into an ordered merged sequence. Unlike concat, sources are subscribed to * eagerly. Unlike merge, their emitted values are merged into the final sequence in subscription order. * This variant will delay any error until after the rest of the mergeSequential backlog * has been processed. @@ -1349,7 +1349,7 @@ public static Flux mergeSequentialDelayError(int prefetch, Publisher * @@ -1366,7 +1366,7 @@ public static Flux mergeSequential(Iterable @@ -1386,7 +1386,7 @@ public static Flux mergeSequential(Iterable