I might be wrong, but that’s what `current` means ...
# rx
a
I might be wrong, but that’s what
current
means in English (and in Russian), isn’t it? Example:
Copy code
userId.current().flatMap { authService.signOut(it) }.subscribe()
Things like
take(1)
or relying to
replay(1)
can lead to signing out user that’ll sign in later in case if
userId
had no values at the time of subscription. Maybe
latest()
would be a better name since it relies on
withLatestFrom()
, but I’m not sure.