onSuccess

inline fun <T> ChannelResult<T>.onSuccess(action: (value: T) -> Unit): ChannelResult<T>(source)

Performs the given action on the encapsulated value if this instance represents success. Returns the original ChannelResult unchanged.