 public extension DispatchQoS.QoSClass {
 
     var description: String {
-        get {
-            switch self {
-            case DispatchQoS.QoSClass(rawValue: qos_class_main())!: return "Main"
-            case .userInteractive: return "User Interactive"
-            case .userInitiated: return "User Initiated"
-            case .default: return "Default"
-            case .utility: return "Utility"
-            case .background: return "Background"
-            case .unspecified: return "Unspecified"
-            @unknown default: return "Unknown"
-            }
-        }
+        let result: QoSClassDescription
+        switch self {
+        case DispatchQoS.QoSClass(rawValue: qos_class_main())!: result = .main
+        case .userInteractive: result = .userInteractive
+        case .userInitiated: result = .userInitiated
+        case .default: result = .default
+        case .utility: result = .utility
+        case .background: result = .background
+        case .unspecified: result = .unspecified
+        @unknown default: result = .unknown
+        }
+        return result.rawValue
     }
 }

    }
}


// MARK: - Extension for `qos_class_t`


     Description of the `qos_class_t`. E.g. "Main", "User Interactive", etc. for the given Quality of Service class.
     */
    var description: String {
        let result: QoSClassDescription
        switch self {
        case qos_class_main(): result = .main
        case DispatchQoS.QoSClass.userInteractive.rawValue: result = .userInteractive
        case DispatchQoS.QoSClass.userInitiated.rawValue: result = .userInitiated
        case DispatchQoS.QoSClass.default.rawValue: result = .default
        case DispatchQoS.QoSClass.utility.rawValue: result = .utility
        case DispatchQoS.QoSClass.background.rawValue: result = .background
        case DispatchQoS.QoSClass.unspecified.rawValue: result = .unspecified
        default: result = .unknown
        }
        return result.rawValue
    }
}

