Skip to content

Commit 4d4bf20

Browse files
authored
Merge pull request #782 from ikesyo/rename-notificationqueue-coalescing
2 parents e9b3cdb + 534f49b commit 4d4bf20

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Foundation/NSNotificationQueue.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ extension NotificationQueue {
1818
case postNow
1919
}
2020

21-
public struct Coalescing : OptionSet {
21+
public struct NotificationCoalescing : OptionSet {
2222
public let rawValue : UInt
2323
public init(rawValue: UInt) { self.rawValue = rawValue }
2424

25-
public static let onName = Coalescing(rawValue: 1 << 0)
26-
public static let onSender = Coalescing(rawValue: 1 << 1)
25+
public static let onName = NotificationCoalescing(rawValue: 1 << 0)
26+
public static let onSender = NotificationCoalescing(rawValue: 1 << 1)
2727
}
2828
}
2929

@@ -80,7 +80,7 @@ open class NotificationQueue: NSObject {
8080
enqueueNotification(notification, postingStyle: postingStyle, coalesceMask: [.onName, .onSender], forModes: nil)
8181
}
8282

83-
open func enqueueNotification(_ notification: Notification, postingStyle: PostingStyle, coalesceMask: Coalescing, forModes modes: [RunLoopMode]?) {
83+
open func enqueueNotification(_ notification: Notification, postingStyle: PostingStyle, coalesceMask: NotificationCoalescing, forModes modes: [RunLoopMode]?) {
8484
var runloopModes: [RunLoopMode] = [.defaultRunLoopMode]
8585
if let modes = modes {
8686
runloopModes = modes
@@ -105,7 +105,7 @@ open class NotificationQueue: NSObject {
105105
}
106106
}
107107

108-
open func dequeueNotificationsMatching(_ notification: Notification, coalesceMask: Coalescing) {
108+
open func dequeueNotificationsMatching(_ notification: Notification, coalesceMask: NotificationCoalescing) {
109109
var predicate: (NSNotificationListEntry) -> Bool
110110
switch coalesceMask {
111111
case [.onName, .onSender]:

0 commit comments

Comments
 (0)