import { IAsyncParallel , IParallelEnumerable , ParallelGeneratorType } from "../../types" ; import { BasicParallelEnumerable } from "../BasicParallelEnumerable" ; param first param second returns export const concatenate = < TSource > ( first , second ) : IParallelEnumerable < TSource > => { const generator = async ( ) => { const [ firstData , secondData ] = await Promise . all ( [ first . toArray ( ) , second . toArray ( ) ] ) ; return [ ... firstData , ... secondData ] ; } ; return new BasicParallelEnumerable ( { generator , type : ParallelGeneratorType . PromiseToArray , } ) ; } ;