Class AsyncEnumerableExtensions
An extension class for squashing System.Collections.Generic.IAsyncEnumerable%601
.
Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public static class AsyncEnumerableExtensions
Methods​
FlattenAsync<T>(IAsyncEnumerable<IEnumerable<T>>)​
Flattens the specified pages into one System.Collections.Generic.IEnumerable%601
asynchronously.
View Source​
Declaration
public static async Task<IEnumerable<T>> FlattenAsync<T>(this IAsyncEnumerable<IEnumerable<T>> source)
Returns​
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<<T>>>
Parameters​
Type | Name |
---|---|
System.Collections.Generic.IAsyncEnumerable<System.Collections.Generic.IEnumerable<<T>>> | source |
Type Parameters​
T
Flatten<T>(IAsyncEnumerable<IEnumerable<T>>)​
Flattens the specified pages into one System.Collections.Generic.IAsyncEnumerable%601
.
View Source​
Declaration
public static IAsyncEnumerable<T> Flatten<T>(this IAsyncEnumerable<IEnumerable<T>> source)
Returns​
System.Collections.Generic.IAsyncEnumerable<<T>>
Parameters​
Type | Name |
---|---|
System.Collections.Generic.IAsyncEnumerable<System.Collections.Generic.IEnumerable<<T>>> | source |
Type Parameters​
T