Class AsyncCollectionExtensions
- Namespace
- JsonApiDotNetCore.Services
- Assembly
- JsonApiDotNetCore.dll
[PublicAPI]
public static class AsyncCollectionExtensions
- Inheritance
-
AsyncCollectionExtensions
- Inherited Members
Methods
AddRangeAsync<T>(ICollection<T>, IAsyncEnumerable<T>, CancellationToken)
public static Task AddRangeAsync<T>(this ICollection<T> source, IAsyncEnumerable<T> elementsToAdd, CancellationToken cancellationToken = default)
Parameters
source
ICollection<T>elementsToAdd
IAsyncEnumerable<T>cancellationToken
CancellationToken
Returns
Type Parameters
T
ToListAsync<T>(IAsyncEnumerable<T>, CancellationToken)
public static Task<List<T>> ToListAsync<T>(this IAsyncEnumerable<T> source, CancellationToken cancellationToken = default)
Parameters
source
IAsyncEnumerable<T>cancellationToken
CancellationToken
Returns
Type Parameters
T