split a pull-stream into many streams
split a pull-stream into many substreams
var pull = require'pull-stream'var pswitch = require'pull-switch'pullpullcount100pswitch// return key for which stream this is directed to.return e % 2 ? 'even' : 'odd'// 'even' or 'odd'//return a stream that will be piped to...return pulldrainconsole.logkey+'>' d
has the same api as pull-fork but reads the source at full power instead of trying to follow backpressure closely. In somecases it's simpler to do this, as waiting (for back-pressure to release) creates the possibility of deadlocks.