in processor.py [0:0]
def parallel_concat(processor_list: Sequence[Processor]) -> Processor:
"""Create a sequence of processors to be run in parallel.
The output is the concatenation of all processors, i.e.:
parallel_concat([p1, p2])(stream) -> [p1(stream), p2(stream)]
Args:
processor_list: list of processors.
Returns:
A processor consisting of the parallel run of all the processors in the
list. The execution is sequential from the first processor to the last and
the result of each processor is concatenated
"""
if not processor_list:
raise ValueError('processor_list is empty')
return _ParallelProcessor(processor_list)