duemunk / Async

Syntactic sugar in Swift for asynchronous dispatches in Grand Central Dispatch
MIT License
4.59k stars 316 forks source link

Swift 2.0 support please #72

Closed gevariya-ajit closed 8 years ago

gevariya-ajit commented 8 years ago

public extension 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 {
    get {
        switch self {
        case qos_class_main(): return "Main"
        case QOS_CLASS_USER_INTERACTIVE: return "User Interactive"
        case QOS_CLASS_USER_INITIATED: return "User Initiated"
        case QOS_CLASS_DEFAULT: return "Default"
        case QOS_CLASS_UTILITY: return "Utility"
        case QOS_CLASS_BACKGROUND: return "Background"
        case QOS_CLASS_UNSPECIFIED: return "Unspecified"
        default: return "Unknown"
        }
    }
}

}

ERROR: binary operator '~=' cannot be applied to two 'qos_class_t' operands

duemunk commented 8 years ago

Please search previous issues.