From a53434dbae430213505c9357ff55d1d69214697a Mon Sep 17 00:00:00 2001 From: Simon Whitty Date: Mon, 5 Jan 2026 20:25:25 +1100 Subject: [PATCH 1/2] Xcode 26.2 --- .github/workflows/build.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2b7f159..6560006 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,10 +6,10 @@ on: workflow_dispatch: jobs: - xcode_16_4: - runs-on: macos-15 + xcode_26_2: + runs-on: macos-26 env: - DEVELOPER_DIR: /Applications/Xcode_16.4.app/Contents/Developer + DEVELOPER_DIR: /Applications/Xcode_26.2.app/Contents/Developer steps: - name: Checkout uses: actions/checkout@v4 @@ -27,10 +27,24 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: ./coverage_report.lcov - xcode_26: + xcode_26_1: runs-on: macos-15 env: - DEVELOPER_DIR: /Applications/Xcode_26.0.app/Contents/Developer + DEVELOPER_DIR: /Applications/Xcode_26.1.1.app/Contents/Developer + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Version + run: swift --version + - name: Build + run: swift build --build-tests + - name: Test + run: swift test --skip-build + + xcode_16_4: + runs-on: macos-15 + env: + DEVELOPER_DIR: /Applications/Xcode_16.4.app/Contents/Developer steps: - name: Checkout uses: actions/checkout@v4 From 7c548b2c978d11322c223c6c18d4c75375ca653a Mon Sep 17 00:00:00 2001 From: Simon Whitty Date: Tue, 6 Jan 2026 08:21:27 +1100 Subject: [PATCH 2/2] fix warnings --- Sources/TimeoutController.swift | 6 +++--- Tests/Task+SleepIndefinitelyTests.swift | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/TimeoutController.swift b/Sources/TimeoutController.swift index 7714d66..db835c2 100644 --- a/Sources/TimeoutController.swift +++ b/Sources/TimeoutController.swift @@ -63,7 +63,7 @@ public struct TimeoutController: Sendable { } struct State { - var running: Task? + var running: Task? var pending: (@Sendable () async throws -> Never)? var isComplete: Bool = false } @@ -122,13 +122,13 @@ extension TimeoutController { } } - func startPendingTask() -> Task? { + func startPendingTask() -> Task? { return shared.state.withLock { s in guard let pending = s.pending else { s.isComplete = true return nil } - let task = Task { try await pending() } + let task = Task { _ = try await pending() } s.pending = nil s.running = task return task diff --git a/Tests/Task+SleepIndefinitelyTests.swift b/Tests/Task+SleepIndefinitelyTests.swift index b0b5d39..10a7d49 100644 --- a/Tests/Task+SleepIndefinitelyTests.swift +++ b/Tests/Task+SleepIndefinitelyTests.swift @@ -51,7 +51,7 @@ struct TaskSleepIndefinitelyTests { @Test func throwsWhenCancelled() async { - let task = Task { + let task = Task { try await Task.sleepIndefinitely() }