Home > polyethylene > AsyncIterableBuilder
A class that helps with building an AsyncIterable from a non-structured source.
In order to create the iteration, you must call the value, error and done methods with appropriate arguments.
Signature:
export default class AsyncIterableBuilder<T> implements AsyncIterable<T>
Implements: AsyncIterable<T>
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the AsyncIterableBuilder
class.
Method |
Modifiers |
Description |
---|---|---|
Allows this class to work as a regular | ||
Makes the underlying iterable finish the iteration. | ||
Makes the underlying iterable throw the given | ||
Get a PolyAsyncIterable that iterates the elements as determined by calls to | ||
Gives the underlying iterable a new value to be yielded. |