Given two Bacon.Bus
es I need to combine their respective values. However, the second bus is vastly more "productive" (about 1:200), the first bus is also slower and its first value is severely delayed, e.g. fetched via XHR or something similar. Because of this the first value in the first bus is emitted after the first "batch" has already gone through the second bus. Thus Bacon.onValues(bus1, bus2, f(b1, b2))
doesn't work, neither does bus1.sampledBy(b2, f(b1, b2))
for the same reasons.
I assume I need a way to buffer my second bus and release it as soon as the first bus emits a value. Probably I need something like pausable stream mentioned in issue #300, but maybe I'm missing something very obvious here.
So how do I delay the second bus until a value appears on the first one?