KmmResult
Swift-Friendly variant of stdlib's Result. For easy use under iOS, we need a class like Result
that is not a value
class (which is unsupported in Kotlin/Native)
Trying to create a failure case re-throws any fatal exceptions, such as OutOfMemoryError
. Relies on Arrow's nonFatalOrThrow internally.
Constructors
Link copied to clipboard
Creates a success result from the given value
Creates a failure result from the given failure Trying to create a failure case re-throws any fatal exceptions, such as OutOfMemoryError
. Relies on Arrow's nonFatalOrThrow internally.