Skip to content

AsyncEnumerableRequest<T> Methods

Represents a request to an System.Collections.Generic.IAsyncEnumerable-returning method.

GetAsyncEnumerator(CancellationToken)

View source
public IAsyncEnumerator<T> GetAsyncEnumerator(CancellationToken cancellationToken = default(CancellationToken))
Returns an enumerator that iterates asynchronously through the collection.

Parameters

cancellationTokenCancellationToken
A System.Threading.CancellationToken that may be used to cancel the asynchronous iteration.

Returns

An enumerator that can be used to iterate asynchronously through the collection.

Invoke

override
View source
public override ValueTask<Response> Invoke()
Invoke the object.