onSuccess
inline fun <T> ChannelResult<T>.onSuccess(action: (T) -> Unit): ChannelResult<T>
Content copied to clipboard
Performs the given action on the encapsulated value if this instance represents success. Returns the original ChannelResult
unchanged.
Sources
common source
Link copied to clipboard