https://kotlinlang.org logo
#rx
Title
d

dimsuz

09/28/2017, 12:38 PM
I mean if observable1 emitted an item, then received another and is in a delay stage, and at this point observable2 click hits => using
withLatestFrom
would pick a previous item from observable1 which is not what needed
c

Chris Tipton

09/28/2017, 12:45 PM
Not sure I am following correctly. If observable1 emitted an item, it can’t go back into a delay.
d

dimsuz

09/28/2017, 12:52 PM
why? it then emits another one, and delays it too
suppose that observable1 is something like text edit changes. as user types - it continues to emit items
and to delay them
c

Chris Tipton

09/28/2017, 3:35 PM
Ohhhh, okay. I misunderstood what you were trying to accomplish. Not sure if it is possible to make an observable behave differently if it is in a delay though.
What would you expect to happen if multiple events are being delay at the time obs2 emits?
d

dimsuz

09/28/2017, 5:26 PM
Yeah, sorry, I might have been unclear there 🙂 If multiple events are delayed I'd want only last of them to be zipped with obs2...
2 Views