RunConcurrentlyAsync<T>(IEnumerable<T>, Action<T>, CancellationToken)
Declaration
Task RunConcurrentlyAsync<T>(IEnumerable<T> items, Action<T> action, CancellationToken cancellationToken) where T : notnullParameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | items | |
| Action<T> | action | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Type Parameters
| Name | Description |
|---|---|
| T |
RunConcurrentlyAsync<TItem, TContext>(IEnumerable<TItem>, Action<TItem, TContext>, Func<TContext>, CancellationToken)
Declaration
Task RunConcurrentlyAsync<TItem, TContext>(IEnumerable<TItem> items, Action<TItem, TContext> action, Func<TContext> createContext, CancellationToken cancellationToken) where TItem : notnull where TContext : IDisposableParameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<TItem> | items | |
| Action<TItem, TContext> | action | |
| Func<TContext> | createContext | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Type Parameters
| Name | Description |
|---|---|
| TItem | |
| TContext |
RunConcurrentlyAsync<T>(IEnumerable<T>, Func<T, Task>, CancellationToken)
Declaration
Task RunConcurrentlyAsync<T>(IEnumerable<T> items, Func<T, Task> action, CancellationToken cancellationToken) where T : notnullParameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | items | |
| Func<T, Task> | action | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Type Parameters
| Name | Description |
|---|---|
| T |