flatMapRightWithEither
fun <L, R, T> <Error class: unknown class><Either<L, R>>.flatMapRightWithEither(block: suspend (R) -> <Error class: unknown class><Either<L, T>>): <Error class: unknown class><Either<L, T>>
flatMapLatest the Flow
Parameters
block
function to run on Either.Right value and that returns Flow
Usecase for it: we have 2 functions both of it returns Flow
Example:
fun getUserId(): Either
data class MeWithFriends(val myId: ID, val friends: List
val observeMeWithFriends: Flow