Is there is short form to let flow know that we wa...
# android
a
Is there is short form to let flow know that we want to take same action even if it is a failure or success
Copy code
authRepository.logout().catch {
    fc.emit(Result.failure(LoginSessionExpiredException()))
}.collect {
    fc.emit(Result.failure(LoginSessionExpiredException()))
}
e
Copy code
.catch { /* ignore */ }.onCompletion {
    fc.emit(Result.failure(LoginSessionExpiredException()))
}
1