RXBus icon indicating copy to clipboard operation
RXBus copied to clipboard

Sometimes events may be emited while activity is paused

Open MFlisar opened this issue 9 years ago • 0 comments

it sometimes happens, that an event gets emited, while the activity is resumed due to the time difference between the valve checking the state and the forwarding to the real observer (in the meantime the state of the activity may have changed).

Workaround [IMPLEMENTED]: Check the state when retrieving an event and resend the event to the bus => the activtiy is currently paused and you'll get the event when it's resumed again...

The RXBusBuilder is doing this... (mQueueSubscriptionSafetyCheckEnabled)

MFlisar avatar May 01 '16 12:05 MFlisar