Table of Contents

Interface IIPromiseEnumerator<T>

Namespace
MarymoorStudios.Core.Promises
Assembly
MarymoorStudios.Core.Promises.dll

Supports a simple asynchronous iteration over a generic collection.

public interface IIPromiseEnumerator<out T> : IPromiseDisposable

Type Parameters

T

The type of the elements in the collection.

Inherited Members

Properties

Current

Gets the element in the collection at the current position of the enumerator.

T Current { get; }

Property Value

T

The element in the collection at the current position of the enumerator.

Methods

MoveNextAsync()

Advances the enumerator to the next element.

Promise<bool> MoveNextAsync()

Returns

Promise<bool>

Resolves to true if the enumerator was successfully advanced, false if the end was reached.