I have a multi-casted stream (`replay(1).autoConne...
# rx
z
I have a multi-casted stream (
replay(1).autoConnect()
) for a network call that can emit the following three values:
AuthResponse.Loading
,
AuthResponse.Success
,
AuthResponse.Failure
(it’s a sealed class). I want to re-execute the network call
Single<AuthResponse>
under the following condition: - a new subscriber attaches AND the latest value on this stream is
AuthResponse.Failure
How would you recommend achieving this?