Build Information
Successful build of AsyncTimeout with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/RayKitajima/AsyncTimeout.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/RayKitajima/AsyncTimeout
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at e8024ca Create LICENSE
Cloned https://github.com/RayKitajima/AsyncTimeout.git
Revision (git rev-parse @):
e8024cabcbb49c4aae800830599a16f4131b4e07
SUCCESS checkout https://github.com/RayKitajima/AsyncTimeout.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/RayKitajima/AsyncTimeout.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/4] Emitting module AsyncTimeout
[4/4] Compiling AsyncTimeout AsyncTimeout.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncTimeout/AsyncTimeout.swift:24:15: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | }
18 |
19 | static func withTimeout<T>(seconds: Double, operation: @escaping () async throws -> T) async throws -> T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
20 | var result: T?
21 | var capturedError: Error?
22 | let operationState = OperationState()
23 |
24 | await withTaskGroup(of: (T?, Error?).self) { group in
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
25 | group.addTask {
26 | do {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncTimeout/AsyncTimeout.swift:25:19: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | }
18 |
19 | static func withTimeout<T>(seconds: Double, operation: @escaping () async throws -> T) async throws -> T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
20 | var result: T?
21 | var capturedError: Error?
:
23 |
24 | await withTaskGroup(of: (T?, Error?).self) { group in
25 | group.addTask {
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | do {
27 | let value = try await operation()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncTimeout/AsyncTimeout.swift:36:19: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | }
18 |
19 | static func withTimeout<T>(seconds: Double, operation: @escaping () async throws -> T) async throws -> T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
20 | var result: T?
21 | var capturedError: Error?
:
34 | }
35 |
36 | group.addTask {
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
37 | do {
38 | let checkInterval = UInt64(0.1 * Double(NSEC_PER_SEC))
/Users/admin/builder/spi-builder-workspace/Sources/AsyncTimeout/AsyncTimeout.swift:27:43: warning: capture of 'operation' with non-sendable type '() async throws -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | group.addTask {
26 | do {
27 | let value = try await operation()
| |- warning: capture of 'operation' with non-sendable type '() async throws -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 | await operationState.markAsCompleted()
29 | return (value, nil)
Build complete! (17.05s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "AsyncTimeout",
"name" : "AsyncTimeout",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "AsyncTimeout",
"targets" : [
"AsyncTimeout"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AsyncTimeoutTests",
"module_type" : "SwiftTarget",
"name" : "AsyncTimeoutTests",
"path" : "Tests/AsyncTimeoutTests",
"sources" : [
"AsyncTimeoutTests.swift"
],
"target_dependencies" : [
"AsyncTimeout"
],
"type" : "test"
},
{
"c99name" : "AsyncTimeout",
"module_type" : "SwiftTarget",
"name" : "AsyncTimeout",
"path" : "Sources/AsyncTimeout",
"product_memberships" : [
"AsyncTimeout"
],
"sources" : [
"AsyncTimeout.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.