EnumerableExt.ForEachThreaded(TIn) Method (IEnumerable(TIn), Action(TIn))
Asynchronously applies an action 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 ForEachThreaded<TIn>(
this IEnumerable<TIn> list,
Action<TIn> action
)
Parameters
- list
- Type: System.Collections.Generic.IEnumerable(TIn)
Elements to apply the action on - action
- Type: System.Action(TIn)
Action to apply
Type Parameters
- TIn
- Element type
Return Value
Type: Task
Task wrapping the Task.WhenAll applying the action 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