onSuccess

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

Performs the given action on the encapsulated value if this instance represents success. Returns the receiver DecodingResult.

Since

0.4.0