new Iterator()
Supports a simple iteration over a generic collection.
Extends
Methods
-
current()
-
Returns:
A promise that resolves to an object which this iterator points to.- Type
- Promise.<T>
-
destroy()
-
Destructor
- Inherited From:
Returns:
- Type
- Promise.<void>
-
hasNext()
-
Returns:
A promise that resolves to true if the iterator can be successfully advanced to the next element; false if the iterator is no longer valid.- Type
- Promise.<boolean>
-
next()
-
Advances the iterator to the next element of the collection.
Returns:
- Type
- Promise.<void>
-
takeOwnership()
-
Take the ownership of this object, so that PDFNet.runWithCleanup won't destroy this object.
- Inherited From:
Returns:
- Type
- void