Search Results for

    Show / Hide Table of Contents

    Class AsyncEnumerableExtensions

    An extension class for squashing .

    Inheritance
    Object
    AsyncEnumerableExtensions
    Namespace: Discord
    Assembly: Discord.Net.Core.dll
    Syntax
    public static class AsyncEnumerableExtensions : object
    Remarks

    This set of extension methods will squash an into a single . This is often associated with requests that has a set limit when requesting.

    Methods

    | Improve this Doc View Source

    Flatten<T>(IAsyncEnumerable<IEnumerable<T>>)

    Flattens the specified pages into one .

    Declaration
    public static IAsyncEnumerable<T> Flatten<T>(this IAsyncEnumerable<IEnumerable<T>> source)
    Parameters
    Type Name Description
    IAsyncEnumerable<IEnumerable<T>> source
    Returns
    Type Description
    IAsyncEnumerable<T>
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    FlattenAsync<T>(IAsyncEnumerable<IEnumerable<T>>)

    Flattens the specified pages into one asynchronously.

    Declaration
    public static async Task<IEnumerable<T>> FlattenAsync<T>(this IAsyncEnumerable<IEnumerable<T>> source)
    Parameters
    Type Name Description
    IAsyncEnumerable<IEnumerable<T>> source
    Returns
    Type Description
    Task<IEnumerable<T>>
    Type Parameters
    Name Description
    T

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2023 3.10.0