RXBus
RXBus copied to clipboard
Sometimes events may be emited while activity is paused
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)