Combining streams... help please!

40 views
Skip to first unread message

daniel...@gmail.com

unread,
Sep 10, 2014, 1:02:20 PM9/10/14
to bac...@googlegroups.com
Hello there,

I have asynchronous events that I need combining. I am constructing an array of N streams; each stream has an onValue function to process the returned data.

I have tried combining all of those streams into one onValues on top of the onValue, but it does not get called properly.

var streams = []
...
stream = Bacon.fromCallback ....
stream.onValue...( )

streams.push(stream)

...
Bacon.onValues(streams, f() { .... } )

What would be the right way to have a fuction called back when EACH stream has a (unique) value... AND when everything is completed?

Thanks!

Olivier Clément

unread,
Sep 11, 2014, 4:04:40 PM9/11/14
to bac...@googlegroups.com, daniel...@gmail.com
Reply all
Reply to author
Forward
0 new messages