Class: UnionIterator

asynciterator~UnionIterator(sourcesopt, optionsopt)

An iterator that generates items by reading from multiple other iterators.

Constructor

new UnionIterator(sourcesopt, optionsopt)

Creates a new UnionIterator.

Parameters:
Name Type Attributes Description
sources module:asynciterator.AsyncIterator | Array <optional>

The sources to read from

options object <optional>

Settings of the iterator

Properties
Name Type Attributes Default Description
destroySource boolean <optional>
true

Whether the sources should be destroyed when transformed iterator is closed or destroyed

Extends

  • module:asynciterator.BufferedIterator