Offers a way to access an asynchronous enumeration
- Since:
-
- 0.1.9
Methods
-
getCurrent()
-
Gets the current element in the collection.
- Since:
-
- 0.1.9
Returns:
Current element in the collection (undefined if none)
- Type
- *
-
moveNext()
-
Moves the enumerator to the next element of the enumeration.
- Since:
-
- 0.1.9
Returns:
Resolved with the next element (undefined if none)
- Type
- Promise.<*>
-
reset()
-
Sets the enumerator to its initial position, which is before the first element in the collection.
NOTE once reset has been called, you must call moveNext to access (or not) the first element
- Since:
-
- 0.1.9
Returns:
Resolved when the enumerator is ready to be used
- Type
- Promise