onRightSuspend
inline suspend fun <A, B, C> Either<A, B>.onRightSuspend(crossinline onRight: suspend (B) -> C): Either<A, B>
Content copied to clipboard
Author
skydoves (Jaewoong Eum)
Since
1.0.1
Performs the given suspend onRight on the encapsulated value if this Either instance represents Right. Returns the original Result unchanged.
Parameters
onRight
Performs on the encapsulated value if this Either instance represents Right.