Skip to content

[SR-2207] DispatchQoS.init(qosClass: DispatchQoS.QoSClass, relativePriority: Int) should have a default relative priority #729

Open
@glessard

Description

@glessard
Previous ID SR-2207
Radar None
Original Reporter @glessard
Type Improvement
Environment

Xcode 8 beta 3

Additional Detail from JIRA
Votes 0
Component/s libdispatch
Labels Improvement
Assignee mww (JIRA)
Priority Medium

md5: 0a7258f71072fa80ec0950f50cd68e37

Issue Description:

The rest of the new Dispatch overlay makes good use of defaults, but this parameter was passed over somehow. It would make sense to have a default of 0, that surely is the most commonly-passed parameter.

public struct DispatchQoS : Equatable {
    public init(qosClass: QoSClass, relativePriority: Int = 0) {
        self.qosClass = qosClass
        self.relativePriority = relativePriority
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions