Result

public enum Result<Success>

Represents the result of an asynchronous operation.

  • The operation was a success, and contains the Success output from that operation.

    Declaration

    Swift

    case success(Success)
  • The operation failed, and contains the Error from that operation.

    Declaration

    Swift

    case failure(HTTPError)