diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0000a12..71e7d0e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,22 +47,22 @@ jobs: matrix: include: # macOS - - { platform: macOS, name: "macOS 26, Xcode 26.0, Swift 6.2.0", xcode: "Xcode_26.0.1", runsOn: macOS-26, destination: "platform=macOS" } + - { platform: macOS, name: "macOS 26, Xcode 26.1.1, Swift 6.2.0", xcode: "Xcode_26.1.1", runsOn: macOS-26, destination: "platform=macOS" } - { platform: macOS, name: "macOS 14, Xcode 16.1, Swift 6.0.2", xcode: "Xcode_16.1", runsOn: macOS-14, destination: "platform=macOS" } - { platform: macOS, name: "macOS 14, Xcode 15.4, Swift 5.10", xcode: "Xcode_15.4", runsOn: macOS-14, destination: "platform=macOS" } # iOS - - { platform: iOS, name: "iOS 26.0, Xcode 26.0, Swift 6.2.0", xcode: "Xcode_26.0.1", runsOn: macOS-26, destination: "OS=26.0.1,name=iPhone 17 Pro" } + - { platform: iOS, name: "iOS 26.1", xcode: "Xcode_26.1.1", runsOn: macOS-26, destination: "OS=26.1,name=iPhone 17 Pro" } - { platform: iOS, name: "iOS 18.1", xcode: "Xcode_16.1", runsOn: macOS-14, destination: "OS=18.1,name=iPhone 16 Pro" } - { platform: iOS, name: "iOS 17.4", xcode: "Xcode_15.3", runsOn: macOS-14, destination: "OS=17.4,name=iPhone 15 Pro" } # tvOS - - { platform: tvOS, name: "tvOS 26.0", xcode: "Xcode_26.0.1", runsOn: macOS-26, destination: "OS=26.0,name=Apple TV" } + - { platform: tvOS, name: "tvOS 26.1", xcode: "Xcode_26.1.1", runsOn: macOS-26, destination: "OS=26.1,name=Apple TV" } - { platform: tvOS, name: "tvOS 18.1", xcode: "Xcode_16.1", runsOn: macOS-14, destination: "OS=18.1,name=Apple TV" } - { platform: tvOS, name: "tvOS 17.4", xcode: "Xcode_15.3", runsOn: macOS-14, destination: "OS=17.4,name=Apple TV" } # watchOS - - { platform: watchOS, name: "watchOS 26.0", xcode: "Xcode_26.0.1", runsOn: macOS-26, destination: "OS=26.0,name=Apple Watch Ultra 3 (49mm)" } + - { platform: watchOS, name: "watchOS 26.1", xcode: "Xcode_26.1.1", runsOn: macOS-26, destination: "OS=26.1,name=Apple Watch Ultra 3 (49mm)" } - { platform: watchOS, name: "watchOS 11.1", xcode: "Xcode_16.1", runsOn: macOS-14, destination: "OS=11.1,name=Apple Watch Series 10 (46mm)" } - { platform: watchOS, name: "watchOS 10.5", xcode: "Xcode_15.3", runsOn: macOS-14, destination: "OS=10.5,name=Apple Watch Series 9 (45mm)" } - { platform: watchOS, name: "watchOS 10.4", xcode: "Xcode_15.3", runsOn: macOS-14, destination: "OS=10.4,name=Apple Watch Series 9 (45mm)" } @@ -88,7 +88,7 @@ jobs: fail-fast: false matrix: include: - - { name: "macOS 26, SPM 6.2.0", xcode: "Xcode_26.0.1", runsOn: macOS-26 } + - { name: "macOS 26, SPM 6.2.0", xcode: "Xcode_26.1.1", runsOn: macOS-26 } - { name: "macOS 15, SPM 6.0.2", xcode: "Xcode_16.0", runsOn: macOS-15 } - { name: "macOS 14, SPM 6.0.2", xcode: "Xcode_16.1", runsOn: macOS-14 } - { name: "macOS 14, SPM 5.10.0", xcode: "Xcode_15.3", runsOn: macOS-14 } diff --git a/Sources/Concurrency/DispatchQueue/IDispatchQueue.swift b/Sources/Concurrency/DispatchQueue/IDispatchQueue.swift index 186688c..d6aecc4 100644 --- a/Sources/Concurrency/DispatchQueue/IDispatchQueue.swift +++ b/Sources/Concurrency/DispatchQueue/IDispatchQueue.swift @@ -8,23 +8,23 @@ import Foundation // MARK: - IDispatchQueue public protocol IDispatchQueue: AnyObject { - /// - /// Submits a work item to a dispatch queue for asynchronous execution after - /// a specified time. - /// - /// - parameter: deadline the time after which the work item should be executed, - /// given as a `DispatchTime`. - /// - parameter qos: the QoS at which the work item should be executed. - /// Defaults to `DispatchQoS.unspecified`. - /// - parameter flags: flags that control the execution environment of the - /// work item. - /// - parameter execute: The work item to be invoked on the queue. - /// - SeeAlso: `async(execute:)` - /// - SeeAlso: `asyncAfter(deadline:execute:)` - /// - SeeAlso: `DispatchQoS` - /// - SeeAlso: `DispatchWorkItemFlags` - /// - SeeAlso: `DispatchTime` - /// + // + // Submits a work item to a dispatch queue for asynchronous execution after + // a specified time. + // + // - parameter: deadline the time after which the work item should be executed, + // given as a `DispatchTime`. + // - parameter qos: the QoS at which the work item should be executed. + // Defaults to `DispatchQoS.unspecified`. + // - parameter flags: flags that control the execution environment of the + // work item. + // - parameter execute: The work item to be invoked on the queue. + // - SeeAlso: `async(execute:)` + // - SeeAlso: `asyncAfter(deadline:execute:)` + // - SeeAlso: `DispatchQoS` + // - SeeAlso: `DispatchWorkItemFlags` + // - SeeAlso: `DispatchTime` + // #if swift(>=5.9) func asyncAfter( deadline: DispatchTime, @@ -40,21 +40,21 @@ public protocol IDispatchQueue: AnyObject { execute work: @escaping @convention(block) () -> Void ) #endif - /// - /// Submits a work item to a dispatch queue and optionally associates it with a - /// dispatch group. The dispatch group may be used to wait for the completion - /// of the work items it references. - /// - /// - parameter flags: flags that control the execution environment of the - /// - parameter qos: the QoS at which the work item should be executed. - /// Defaults to `DispatchQoS.unspecified`. - /// - parameter flags: flags that control the execution environment of the - /// work item. - /// - parameter execute: The work item to be invoked on the queue. - /// - SeeAlso: `sync(execute:)` - /// - SeeAlso: `DispatchQoS` - /// - SeeAlso: `DispatchWorkItemFlags` - /// + // + // Submits a work item to a dispatch queue and optionally associates it with a + // dispatch group. The dispatch group may be used to wait for the completion + // of the work items it references. + // + // - parameter flags: flags that control the execution environment of the + // - parameter qos: the QoS at which the work item should be executed. + // Defaults to `DispatchQoS.unspecified`. + // - parameter flags: flags that control the execution environment of the + // work item. + // - parameter execute: The work item to be invoked on the queue. + // - SeeAlso: `sync(execute:)` + // - SeeAlso: `DispatchQoS` + // - SeeAlso: `DispatchWorkItemFlags` + // #if swift(>=5.9) func async( qos: DispatchQoS,