Highland-pool
Pool for Highland streams.
Install
npm install highland-pool
Usage
var Pool = ; //Make a new pool with maximum 2 streams running at the same timevar pool = ; // Pass streams through the poolvar stream1 = ;var stream2 = ;var stream3 = ;var stream4 = ; // Use it as normal highland streamstream1;stream2;stream3;stream4; // You can also use it like this:someStream
Why not .parallel()?
.parallel()
can only be used on stream of streams, and pool can be used for any stream. You can pass the pools around, set maximum concurrency on streams in a more flexible way, e.g. pool for reading files from file system.