Skip to content

Commit a0fd4b8

Browse files
committed
[NSQualityOfService] Drop NS prefix to match the Darwin version
1 parent c491279 commit a0fd4b8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Foundation/NSObjCRuntime.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public enum ComparisonResult : Int {
153153
}
154154

155155
/* Note: QualityOfService enum is available on all platforms, but it may not be implemented on all platforms. */
156-
public enum NSQualityOfService : Int {
156+
public enum QualityOfService : Int {
157157

158158
/* UserInteractive QoS is used for work directly involved in providing an interactive UI such as processing events or drawing to the screen. */
159159
case userInteractive

Foundation/NSOperation.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ open class Operation : NSObject {
147147
open var threadPriority: Double = 0.5
148148

149149
/// - Note: Quality of service is not directly supported here since there are not qos class promotions available outside of darwin targets.
150-
open var qualityOfService: NSQualityOfService = .default
150+
open var qualityOfService: QualityOfService = .default
151151

152152
open var name: String?
153153

@@ -497,7 +497,7 @@ open class OperationQueue: NSObject {
497497
}
498498
}
499499

500-
open var qualityOfService: NSQualityOfService = .default
500+
open var qualityOfService: QualityOfService = .default
501501
#if DEPLOYMENT_ENABLE_LIBDISPATCH
502502
// Note: this will return non nil whereas the objective-c version will only return non nil when it has been set.
503503
// it uses a target queue assignment instead of returning the actual underlying queue.

Foundation/Process.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ open class Process: NSObject {
435435
A block to be invoked when the process underlying the Process terminates. Setting the block to nil is valid, and stops the previous block from being invoked, as long as it hasn't started in any way. The Process is passed as the argument to the block so the block does not have to capture, and thus retain, it. The block is copied when set. Only one termination handler block can be set at any time. The execution context in which the block is invoked is undefined. If the Process has already finished, the block is executed immediately/soon (not necessarily on the current thread). If a terminationHandler is set on an Process, the ProcessDidTerminateNotification notification is not posted for that process. Also note that -waitUntilExit won't wait until the terminationHandler has been fully executed. You cannot use this property in a concrete subclass of Process which hasn't been updated to include an implementation of the storage and use of it.
436436
*/
437437
open var terminationHandler: ((Process) -> Void)?
438-
open var qualityOfService: NSQualityOfService = .default // read-only after the process is launched
438+
open var qualityOfService: QualityOfService = .default // read-only after the process is launched
439439
}
440440

441441
extension Process {

0 commit comments

Comments
 (0)