Skip to content

Commit 144c8d8

Browse files
Remove Swift 5 support from QueuedRemoteXPCService, update CI
1 parent f32a686 commit 144c8d8

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ on:
1313
branches:
1414
- main
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
test:
1822
name: Test
19-
runs-on: macOS-14
20-
strategy:
21-
matrix:
22-
developer_dir:
23-
- "/Applications/Xcode_15.4.app/Contents/Developer"
24-
- "/Applications/Xcode_16.1.app/Contents/Developer"
23+
runs-on: macOS-15
24+
timeout-minutes: 30
25+
env:
26+
DEVELOPER_DIR: /Applications/Xcode_16.2.app
2527
steps:
2628
- uses: actions/checkout@v4
2729
- name: Test
28-
env:
29-
DEVELOPER_DIR: ${{ matrix.developer_dir }}
3030
run: set -o pipefail && xcodebuild -scheme AsyncXPCConnection -destination "platform=macOS" test | xcbeautify

Sources/AsyncXPCConnection/QueuedRemoteXPCService.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,9 @@ extension QueuedRemoteXPCService {
4242
}
4343

4444
extension QueuedRemoteXPCService {
45-
#if compiler(<6.0)
46-
public typealias ResultOperationHandler<Value> = @Sendable (Result<Value, Error>) -> Void
47-
public typealias ErrorOperationHandler = @Sendable (Error?) -> Void
48-
public typealias ValueErrorOperationHandler<Value> = @Sendable (Value?, Error?) -> Void
49-
#else
5045
public typealias ResultOperationHandler<Value> = (Result<Value, Error>) -> Void
5146
public typealias ErrorOperationHandler = (Error?) -> Void
5247
public typealias ValueErrorOperationHandler<Value> = (Value?, Error?) -> Void
53-
#endif
5448

5549
public func addResultOperation<Value: Sendable>(
5650
barrier: Bool = false,

0 commit comments

Comments
 (0)