Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Run­Time / Run­Time­Aspect­Helper / Buffer­Async

Method BufferAsync

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

Declaration
public static ValueTask<AsyncEnumerableList<T>> BufferAsync<T>(this IAsyncEnumerable<T> enumerable, CancellationToken cancellationToken = null)
Parameters
Type Name Description
IAsyncEnumerable<T> enumerable
CancellationToken cancellationToken
Returns
Type Description
ValueTask<AsyncEnumerableList<T>>
Type Parameters
Name Description
T

BufferAsync<T>(IAsyncEnumerator<T>, CancellationToken)

Declaration
public static ValueTask<AsyncEnumerableList<T>.AsyncEnumerator> BufferAsync<T>(this IAsyncEnumerator<T> enumerator, CancellationToken cancellationToken = null)
Parameters
Type Name Description
IAsyncEnumerator<T> enumerator
CancellationToken cancellationToken
Returns
Type Description
ValueTask<AsyncEnumerableList.AsyncEnumerator<>>
Type Parameters
Name Description
T