dart-lang / stream_transform

Dart utility methods to create StreamTransfomer instances to manipulate Streams

Home Page:https://pub.dev/packages/stream_transform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement `merge` and `mergeAll`

matanlurey opened this issue · comments

Actually, it's not clear this would be a transformer. Should it still go here? @natebosch

If we wanted to implement this as a StreamTransformer I think we could.

someStream.transform(merge(someOtherStream))

It looks like there are two variants in Rx. A static Observable.merge(source1, source2) and a method on observable instances. You can see both versions here: http://www.introtorx.com/Content/v1.0.10621.0/12_CombiningSequences.html#Merge

I think the transform(merge(someOtherStream)) implementation fits this package. I think the other approach wouldn't.