1313import CDispatch
1414import _SwiftDispatchOverlayShims
1515
16- public extension DispatchSourceProtocol {
16+ extension DispatchSourceProtocol {
1717
1818 public func setEventHandler( qos: DispatchQoS = . unspecified, flags: DispatchWorkItemFlags = [ ] , handler: DispatchSourceHandler ? ) {
1919 if #available( macOS 10 . 10 , iOS 8 . 0 , * ) , let h = handler, qos != . unspecified || !flags. isEmpty {
@@ -91,7 +91,7 @@ public extension DispatchSourceProtocol {
9191 }
9292}
9393
94- public extension DispatchSource {
94+ extension DispatchSource {
9595#if HAVE_MACH
9696 public struct MachSendEvent : OptionSet , RawRepresentable {
9797 public let rawValue : UInt
@@ -222,7 +222,7 @@ public extension DispatchSource {
222222}
223223
224224#if HAVE_MACH
225- public extension DispatchSourceMachSend {
225+ extension DispatchSourceMachSend {
226226 public var handle : mach_port_t {
227227 return mach_port_t ( dispatch_source_get_handle ( self as! DispatchSource ) )
228228 }
@@ -240,15 +240,15 @@ public extension DispatchSourceMachSend {
240240#endif
241241
242242#if HAVE_MACH
243- public extension DispatchSourceMachReceive {
243+ extension DispatchSourceMachReceive {
244244 public var handle : mach_port_t {
245245 return mach_port_t ( dispatch_source_get_handle ( self as! DispatchSource ) )
246246 }
247247}
248248#endif
249249
250250#if HAVE_MACH
251- public extension DispatchSourceMemoryPressure {
251+ extension DispatchSourceMemoryPressure {
252252 public var data : DispatchSource . MemoryPressureEvent {
253253 let data = dispatch_source_get_data ( self as! DispatchSource )
254254 return DispatchSource . MemoryPressureEvent ( rawValue: data)
@@ -262,7 +262,7 @@ public extension DispatchSourceMemoryPressure {
262262#endif
263263
264264#if !os(Linux) && !os(Android)
265- public extension DispatchSourceProcess {
265+ extension DispatchSourceProcess {
266266 public var handle : pid_t {
267267 return pid_t ( dispatch_source_get_handle ( self as! DispatchSource ) )
268268 }
@@ -277,7 +277,7 @@ public extension DispatchSourceProcess {
277277}
278278#endif
279279
280- public extension DispatchSourceTimer {
280+ extension DispatchSourceTimer {
281281 ///
282282 /// Sets the deadline and leeway for a timer event that fires once.
283283 ///
@@ -618,7 +618,7 @@ public extension DispatchSourceTimer {
618618}
619619
620620#if !os(Linux) && !os(Android)
621- public extension DispatchSourceFileSystemObject {
621+ extension DispatchSourceFileSystemObject {
622622 public var handle : Int32 {
623623 return Int32 ( dispatch_source_get_handle ( ( self as! DispatchSource ) . __wrapped) )
624624 }
@@ -635,7 +635,7 @@ public extension DispatchSourceFileSystemObject {
635635}
636636#endif
637637
638- public extension DispatchSourceUserDataAdd {
638+ extension DispatchSourceUserDataAdd {
639639 /// Merges data into a dispatch source of type `DISPATCH_SOURCE_TYPE_DATA_ADD`
640640 /// and submits its event handler block to its target queue.
641641 ///
@@ -646,7 +646,7 @@ public extension DispatchSourceUserDataAdd {
646646 }
647647}
648648
649- public extension DispatchSourceUserDataOr {
649+ extension DispatchSourceUserDataOr {
650650 /// Merges data into a dispatch source of type `DISPATCH_SOURCE_TYPE_DATA_OR` and
651651 /// submits its event handler block to its target queue.
652652 ///
@@ -657,7 +657,7 @@ public extension DispatchSourceUserDataOr {
657657 }
658658}
659659
660- public extension DispatchSourceUserDataReplace {
660+ extension DispatchSourceUserDataReplace {
661661 /// Merges data into a dispatch source of type `DISPATCH_SOURCE_TYPE_DATA_REPLACE`
662662 /// and submits its event handler block to its target queue.
663663 ///
0 commit comments