GetAsyncEnumerator Method
Definition
- Assemblies
- Savvyio.Messaging.dll
GetAsyncEnumerator(CancellationToken)
Returns an enumerator that iterates asynchronously through the collection.
public virtual IAsyncEnumerator<IMessage<T>> GetAsyncEnumerator(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA CancellationToken that may be used to cancel the asynchronous iteration.
Returns
- IAsyncEnumerator<IMessage<T>>
An enumerator that can be used to iterate asynchronously through the collection.