Result
Class that represents either the Success outcome with a value of type SuccessType or Failure with a value of type FailureType.
Important: This is a Public Preview API. It may be changed or removed at any time.
Types
Link copied to clipboard
Represents a failed operation that resulted in a FailureType.
Link copied to clipboard
Represents a successful operation that resulted in a returned SuccessType.
Functions
Link copied to clipboard
Returns a failure value if the result is Failure.
Link copied to clipboard
Returns a value if the result is Success.
Inheritors
Extensions
Link copied to clipboard
Converts Result to Either. Result.Failure will be converted to Either.Left and Result.Success will be converted to Either.Right.