-
Notifications
You must be signed in to change notification settings - Fork 539
concat marble diagram misleading #22
Comments
Unless the observables are cold.
The confusion arises if you are thinking of hot observables only. By default, RxMarbles displays cold observables. Rx is also cold by default. That said, I understand that the RxJava diagram is more intuitive. To match that, I would need to build a custom renderer for concat (and maybe a couple of other related ones). It's doable, but I want to get other things solved first, such as a rendering for flatMap and other operators returning Observables-of-Observables. For now, how about pointing out that these diagrams illustrate cold observables? |
There's an ambiguity, I think, about how time is represented in marble If instead you interpret the left-to-right time as being relative to each I'd expect if I look over the diagrams I made for RxJava and for the On Mon, Jul 20, 2015 at 12:24 PM, André Staltz [email protected]
David M. Gross |
+1 to indicating cold/hot Observables. A toggle on subsequent Observables to switch them between cold and hot would be neat. |
The diagram for concat shows the second Observable emitting items concurrently with the first one, and yet those items end up being concatenated. In reality, either those items would be lost or they wouldn't be emitted until the first Observable completes.
See: ReactiveX/RxJava#3090 (comment)
The text was updated successfully, but these errors were encountered: