Skip to content

Merge multiple streams of ordered objects into one interleaved stream preserving order

Notifications You must be signed in to change notification settings

Allow2CEO/stream-merge-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

stream-merge-sort

Merge (interleave) a bunch of ordered streams and keep the order.

build status

Synopsis

var stream1 = new Stream();
var stream2 = new Stream();

var mergedSorted = mergeStreamsSort([stream1, stream2], function(a, b) { return a.id < b.id });

Description

This is the merge function from event-stream separated into a new module and given an add method so you can dynamically add more sources to the stream.

License

MIT

About

Merge multiple streams of ordered objects into one interleaved stream preserving order

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published