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