asKResult

Transforms a Kotlin native kotlin.Result to a KResult

The resulting type will always have a Throwable on the Failure side, as Kotlin Results are more restrictive. Keep in mind, that if the failure side is transformed to a type not implementing Throwable, it can not be transformed back to a Kotlin Result using KResult.asResult.

See also

to transform a KResult to a Kotlin Result