Concatenates elements of each Publisher provided via an Iterable sequence into a single sequence of elements without interleaving them. Backpres
(@NonNull Iterable<@NonNull ? extends Publisher<? extends T>> sources)
| 1180 | * @throws NullPointerException if {@code sources} is {@code null} |
| 1181 | */ |
| 1182 | @SuppressWarnings({ "unchecked", "rawtypes" }) |
| 1183 | @CheckReturnValue |
| 1184 | @NonNull |
| 1185 | @BackpressureSupport(BackpressureKind.FULL) |
| 1186 | @SchedulerSupport(SchedulerSupport.NONE) |
| 1187 | public static <@NonNull T> Flowable<T> concat(@NonNull Iterable<@NonNull ? extends Publisher<? extends T>> sources) { |
| 1188 | Objects.requireNonNull(sources, "sources is null"); |
| 1189 | // unlike general sources, fromIterable can only throw on a boundary because it is consumed only there |
| 1190 | return fromIterable(sources).concatMapDelayError((Function)Functions.identity(), false, 2); |
| 1191 | } |
| 1192 | |
| 1193 | /** |
| 1194 | * Returns a {@code Flowable} that emits the items emitted by each of the {@link Publisher}s emitted by the source |