sealed class Result<out T>Platform and version requirements: Common
fun exceptionOrNull(): Throwable? |
|
fun getOrNull(): T? |
fun <T> failure(error: Throwable): Result<T> |
|
fun <R> runCatching(block: () -> R): Result<R> |
|
fun <T> success(value: T): Result<T> |