Performs the given Func sequential for each element in the enumerable.
Namespace: UnityThreadingAssembly: UnityThreading (in UnityThreading.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static IEnumerable<Task<TResult>> SequentialForEach<TResult, T>( this IEnumerable<T> that, Func<T, TResult> action, TaskDistributor target ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function SequentialForEach(Of TResult, T) ( _ that As IEnumerable(Of T), _ action As Func(Of T, TResult), _ target As TaskDistributor _ ) As IEnumerable(Of Task(Of TResult)) |
Visual C++ |
---|
[ExtensionAttribute] public: generic<typename TResult, typename T> static IEnumerable<Task<TResult>^>^ SequentialForEach( IEnumerable<T>^ that, Func<T, TResult>^ action, TaskDistributor^ target ) |
Parameters
- that
- Type: System.Collections.Generic..::..IEnumerable<(Of <(<'T>)>)>
- action
- Type: System..::..Func<(Of <(<'T, TResult>)>)>
The Func to perform for each element.
- target
- Type: UnityThreading..::..TaskDistributor
The TaskDistributor instance on which the operation should perform.
Type Parameters
- TResult
- T