The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of AsyncTimeout, reference main (e8024c), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 21:13:51 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.61.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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "asynctimeout",
      "name": "AsyncTimeout",
      "url": "https://github.com/RayKitajima/AsyncTimeout.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AsyncTimeout",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/RayKitajima/AsyncTimeout.git
[1/17] Fetching asynctimeout
Fetched https://github.com/RayKitajima/AsyncTimeout.git from cache (0.52s)
Creating working copy for https://github.com/RayKitajima/AsyncTimeout.git
Working copy of https://github.com/RayKitajima/AsyncTimeout.git resolved at main (e8024ca)
warning: '.resolve-product-dependencies': dependency 'asynctimeout' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/RayKitajima/AsyncTimeout.git
https://github.com/RayKitajima/AsyncTimeout.git
{
  "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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.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:25:27: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
23 |
24 |         await withTaskGroup(of: (T?, Error?).self) { group in
25 |             group.addTask {
   |                           `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
26 |                 do {
27 |                     let value = try await operation()
   |                                           `- note: closure captures 'operation' which is accessible to code in the current task
28 |                     await operationState.markAsCompleted()
29 |                     return (value, nil)
Build complete! (4.36s)
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.