Skip to content

An AsyncIterator for taking the union of different AsyncIterators.

License

Notifications You must be signed in to change notification settings

rubensworks/asynciterator-union.js

Repository files navigation

DEPRECATED

As of AsyncIterator 3.x.x, this functionality exists in UnionIterator.

Async Union Iterator

Build Status Coverage Status npm version Greenkeeper badge

An AsyncIterator for taking the union of different AsyncIterators.

As of version 1.2.0, this requires Node version 8 or higher.

Usage

const RoundRobinUnionIterator = require('asynciterator-union').RoundRobinUnionIterator;

let it = new RoundRobinUnionIterator([AsyncIterator.range(0, 2), AsyncIterator.range(2, 4)]);
it.on('data', console.log);

License

This software is written by Ruben Taelman.

This code is released under the MIT license.

About

An AsyncIterator for taking the union of different AsyncIterators.

Resources

License

Stars

Watchers

Forks

Packages

No packages published