Transformer that feeds all inputs to all of the transformers in ts
,
passing all transformed inputs from each to a downstream handler.
Transformer that feeds all inputs to all of the transformers in ts
,
passing all transformed inputs from each to a downstream handler.
Each of the transformers should have the same transformed type T
.
If your transformers all have different types, consider mapping
them to a sealed trait/coproduct/Either. If you have exactly two
transformers to merge, use MergeEither
instead.
The input type
The common "transformed" type
A list of Transformers to be run in parallel
Convenience version of Parallel
for exactly two transformers of arbitrary types.
Convenience version of Parallel
for exactly two transformers of arbitrary types.
Results from t1
will be wrapped as Left
, and results from t2
will be wrapped as Right
.
The downstream handler will receive results of type Either[T1, T2]
.
The input type
The "left" transformer's "transformed" type
The "right" transformer's "transformed" type
The "left" transformer
The "right" transformer