Interface IPromiseEnumerable<T>
- Namespace
- MarymoorStudios.Core.Promises
- Assembly
- MarymoorStudios.Core.Promises.dll
Factory for asynchronous enumerators.
public interface IPromiseEnumerable<out T>
Type Parameters
T
The type of the elements.
Methods
GetAsyncEnumerator(CancellationToken)
Returns an enumerator that iterates asynchronously through the collection.
IIPromiseEnumerator<out T> GetAsyncEnumerator(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenA CancellationToken to cancel the asynchronous iteration.