inline fun <T> Result<T>.onSuccess( action: (value: T) -> Unit ): Result<T>
Performs the given action on encapsulated value if this instance represents success. Returns the original Result unchanged.
Result
© 2010–2019 JetBrains s.r.o.Licensed under the Apache License, Version 2.0. https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/on-success.html