Table of Contents

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 CancellationToken

A CancellationToken to cancel the asynchronous iteration.

Returns

IIPromiseEnumerator<T>