SuperLinq SuperLinq
SuperLinq SuperLinq
DocFX + Singulink = ♥

Search Results for

    Method Consume

    Consume<T>(IAsyncEnumerable<T>, CancellationToken)

    Completely consumes the given sequence. This method uses immediate execution, and doesn't store any data during execution.

    Declaration
    public static ValueTask Consume<T>(this IAsyncEnumerable<T> source, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> source

    Source to consume

    CancellationToken cancellationToken

    The optional cancellation token to be used for cancelling the sequence at any time.

    Returns
    Type Description
    ValueTask
    Type Parameters
    Name Description
    T

    Element type of the sequence

    © SuperLinq Authors. All rights reserved.