as Kotlin Result
Wraps this value as a KotlinResult using result.
This value is wrapped as a Result.success.
Thrown Exceptions are wrapped as a Result.failure.
CancellationException is caught (non-suspend property). Do not use in suspend contexts — use toKotlinResult instead.
Errors are always propagated.
Receiver
The value to wrap.