You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.
RxTiPresenterUtils.deliverLatestCacheToView caches and re-delivers all items emitted by the source.
Look at this log output. When the view is detached, several items are emitted by the source, but not delivered. This is correct so far.
After the view is reattached, all of the items are delivered again, including those which had already been delivered (c9915aa) and those which should have been dropped (6b60904).
There is similar strange behaviour with deliverLatestToView (the variant without the caching).
Again, this delivers all of the items which should have been dropped while the view was detached, but it delivers them in a different order. Is this a threading bug?
The deliverLatestCacheToView behavior is correct. All items, including the already delivered ones will be emitted again. Sending all items since the view was detached could be another operator. I'm waiting for a PR from you 😉
Can you post the code for your deliverLatestToView example? These must be multiple Observables because deliverLatestToView emits only the latest item. Neither the Observables nor the operators know each other. The order between emissions of different Observables cannot be guaranteed.
RxTiPresenterUtils.deliverLatestCacheToView
caches and re-delivers all items emitted by the source.Look at this log output. When the view is detached, several items are emitted by the source, but not delivered. This is correct so far.
After the view is reattached, all of the items are delivered again, including those which had already been delivered (
c9915aa
) and those which should have been dropped (6b60904
).Here is the code:
Is this the expected behaviour?
The text was updated successfully, but these errors were encountered: