Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: IEnumerable<TResult> ParallelSelectMany<TSource, TResult>(this IEnumerable<TSource>, int, Func<TSource, IEnumerable<TResult>>)

  • Declared in: RT.Util.Ut

Declaration

public static IEnumerable<TResult> ParallelSelectMany<TSource, TResult>(
    this IEnumerable<TSource> items,
    int maxSimultaneous,
    Func<TSource, IEnumerable<TResult>> selector
)

Summary

Runs the specified function in parallel for each item in the input collection and returns a collection containing the concatenation of all the results of the function calls.

Generic type parameters

TSource The type of the elements of items.
TResult The type of the elements of the sequence returned by selector.

Parameters

this IEnumerable<TSource>items Input collection of items to pass to the function.
intmaxSimultaneous Maximum number of concurrent threads allowed.
Func<TSource, IEnumerable<TResult>>selector Function that returns a collection for each input item.