Swift

  • Swift.Result is a Enumeration that represents the result of an operation. Here’s a sample code how to handle a Result

    switch result {
    case .success(let successObject):
        print("here you should handle the success case")
    case .failure(let failureObject):
        print("here you should handle the failure case")
    }
    
    See more

    Declaration

    Swift

    extension Swift.Result