java.lang.Object
mutiny.zero.operators.Concatenate<T>
- Type Parameters:
T
- the elements type
- All Implemented Interfaces:
Flow.Publisher<T>
A
Flow.Publisher
that is the concatenation of several ones.
The first publisher in the list is the first to be subscribed. Once it completes the next one is subscribed and so on, up to the completion of the last one.
If any publisher sends an error signal then the concatenation stream ends with that error.
-
Constructor Summary
ConstructorsConstructorDescriptionConcatenate
(List<Flow.Publisher<T>> publishers) Create a new concatenation publisher. -
Method Summary
-
Constructor Details
-
Concatenate
Create a new concatenation publisher.- Parameters:
publishers
- the list of publishers, must not benull
, must not containnull
-
-
Method Details
-
subscribe
- Specified by:
subscribe
in interfaceFlow.Publisher<T>
-