EnumerableExt.ForEachThreaded(TIn, TOut) Method (IEnumerable(TIn), Func(TIn, TOut))
Asynchronously applies a function on all elements in a collection.
Namespace: UltimateXR.Extensions.System.Collections
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static Task<TOut[]> ForEachThreaded<TIn, TOut>(
this IEnumerable<TIn> list,
Func<TIn, TOut> function
)
Parameters
- list
- Type: System.Collections.Generic.IEnumerable(TIn)
Elements to apply the function on - function
- Type: System.Func(TIn, TOut)
Function to apply
Type Parameters
- TIn
- Element type
- TOut
- [Missing
documentation for “M:UltimateXR.Extensions.System.Collections.EnumerableExt.ForEachThreaded 2(System.Collections.Generic.IEnumerable{
0},System.Func{0,
1})”]
Return Value
Type: Task(TOut[])
Task wrapping the Task.WhenAll applying the function on all elements in a collection
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable(TIn). When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also
Reference
EnumerableExt Class
ForEachThreaded Overload
UltimateXR.Extensions.System.Collections Namespace