pull-robin

0.0.3 • Public • Published

pull-robin

Read source pull-streams, in round robin fashion.

Usage

robin(?isSerial, streams...)

args

  • isSerial - optional. If set to true, it will wait for a response from a stream, before reading from the next. Default is false.
  • streams - an array of source streams, or a list of source streams as args.

Example

var pull = require("pull-stream");
var robin = require("pull-robin");
 
pull(
  robin(
    pull.values([1,4,7]),
    pull.values([2,5]),
    pull.values([3,6,8])
  ),
  pull.log()
)

install

With npm do:

npm install pull-robin

license

MIT

Package Sidebar

Install

npm i pull-robin

Weekly Downloads

4

Version

0.0.3

License

none

Last publish

Collaborators

  • tounano