Closed ElonH closed 4 years ago
Hi!
This is the expected behaviour, even though it is surprising at first glance.
You are correct that subscription order matters here. The subscriptions to a subject are kept in a queue and values are delivered to the subscriptions in order.
In this case the w subscription is the source of the doo signal. Thus, in the first example, the w subscription receives the co signal before the xc and xbc subscriptions and emits the doo signal before co has reached xc or xbc. with_latest_from gets the doo signal and has no value from co to emit, so nothing is emitted.
Hi,
There are two examples.
I think that it should be output all messages, but
xc
andxbc
are missed.And I try put
w
behindxbc
, like that:In my mind, the above example are equivalent, mean that
w,x,xb,xc,xbc,y
will be outputed in both examples. I'm a newee in using RxCpp library, am I missed? I should take care of subcription order, when usingwith_lastest_from
?