Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions Sources/TimeoutController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public struct TimeoutController: Sendable {
}

struct State {
var running: Task<Never, any Error>?
var running: Task<Void, any Error>?
var pending: (@Sendable () async throws -> Never)?
var isComplete: Bool = false
}
Expand Down Expand Up @@ -122,13 +122,13 @@ extension TimeoutController {
}
}

func startPendingTask() -> Task<Never, any Error>? {
func startPendingTask() -> Task<Void, any Error>? {
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
Expand Down
2 changes: 1 addition & 1 deletion Tests/Task+SleepIndefinitelyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct TaskSleepIndefinitelyTests {

@Test
func throwsWhenCancelled() async {
let task = Task {
let task = Task<Void, any Error> {
try await Task.sleepIndefinitely()
}

Expand Down
Loading