Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A merge of a merge - is it a bug or something I don't understand #243

Open
NeverwinterMoon opened this issue Jun 19, 2017 · 0 comments
Open

Comments

@NeverwinterMoon
Copy link

So, if I do something like this:

var a = Kefir.constant(1)
var merge = Kefir.merge([a, a])
merge.onValue()

The output will be 1, 1, end

Now, if I do this:

var a = Kefir.constant(1)
var merge1 = Kefir.merge([a])
var merge2 = Kefir.merge([merge1, merge1])
merge2.onValue()

The output will be 1 and the stream will end and I don't understand why. In my opinion, the first and the second example should work the same and produce: 1, 1, end.

The example above is simplified, but in my real code I have one input stream which I filter in different ways and then merge again, but the core of the problem is what I wrote above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant