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 AsyncChannelKit, reference main (9d4811), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 06:28:02 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/AsyncSwiftKits/AsyncChannelKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AsyncSwiftKits/AsyncChannelKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 9d48113 Update README.md
Cloned https://github.com/AsyncSwiftKits/AsyncChannelKit.git
Revision (git rev-parse @):
9d48113fd79ca8c59b069ef67f8e5f3564c3e144
SUCCESS checkout https://github.com/AsyncSwiftKits/AsyncChannelKit.git at main
Fetching https://github.com/brennanMKE/AsyncTesting.git
[1/362] Fetching asynctesting
Fetched https://github.com/brennanMKE/AsyncTesting.git from cache (0.63s)
Computing version for https://github.com/brennanMKE/AsyncTesting.git
Computed https://github.com/brennanMKE/AsyncTesting.git at 0.0.7 (1.20s)
Creating working copy for https://github.com/brennanMKE/AsyncTesting.git
Working copy of https://github.com/brennanMKE/AsyncTesting.git resolved at 0.0.7
========================================
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": "asyncchannelkit",
      "name": "AsyncChannelKit",
      "url": "https://github.com/AsyncSwiftKits/AsyncChannelKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AsyncChannelKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/AsyncSwiftKits/AsyncChannelKit.git
[1/105] Fetching asyncchannelkit
Fetched https://github.com/AsyncSwiftKits/AsyncChannelKit.git from cache (0.59s)
Creating working copy for https://github.com/AsyncSwiftKits/AsyncChannelKit.git
Working copy of https://github.com/AsyncSwiftKits/AsyncChannelKit.git resolved at main (9d48113)
warning: '.resolve-product-dependencies': dependency 'asyncchannelkit' 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/AsyncSwiftKits/AsyncChannelKit.git
https://github.com/AsyncSwiftKits/AsyncChannelKit.git
{
  "dependencies" : [
    {
      "identity" : "asynctesting",
      "requirement" : {
        "exact" : [
          "0.0.7"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/brennanMKE/AsyncTesting.git"
    }
  ],
  "manifest_display_name" : "AsyncChannelKit",
  "name" : "AsyncChannelKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "AsyncChannelKit",
      "targets" : [
        "AsyncChannelKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AsyncChannelKitTests",
      "module_type" : "SwiftTarget",
      "name" : "AsyncChannelKitTests",
      "path" : "Tests/AsyncChannelKitTests",
      "product_dependencies" : [
        "AsyncTesting"
      ],
      "sources" : [
        "AsyncChannelKitTests.swift"
      ],
      "target_dependencies" : [
        "AsyncChannelKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AsyncChannelKit",
      "module_type" : "SwiftTarget",
      "name" : "AsyncChannelKit",
      "path" : "Sources/AsyncChannelKit",
      "product_memberships" : [
        "AsyncChannelKit"
      ],
      "sources" : [
        "AsyncChannel.swift",
        "AsyncSequence+forEach.swift",
        "AsyncThrowingChannel.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
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/6] Compiling AsyncChannelKit AsyncSequence+forEach.swift
[4/6] Emitting module AsyncChannelKit
[5/6] Compiling AsyncChannelKit AsyncChannel.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncChannelKit/AsyncChannel.swift:16:41: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
 14 |                 return nil
 15 |             }
 16 |             let value: Element? = await withTaskCancellationHandler { [channel] in
    |                                         |- warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
    |                                         `- note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
 17 |                 Task {
 18 |                     await channel.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncChannelKit/AsyncChannel.swift:57:15: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
 55 |     // send should not continue until there is a matched next or task is cancelled
 56 |     public func send(_ element: Element) async {
 57 |         await withTaskCancellationHandler {
    |               |- warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
    |               `- note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
 58 |             Task {
 59 |                 await terminateAll()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncChannelKit/AsyncChannel.swift:57:15: warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
 55 |     // send should not continue until there is a matched next or task is cancelled
 56 |     public func send(_ element: Element) async {
 57 |         await withTaskCancellationHandler {
    |               |- warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
    |               `- note: sending 'self'-isolated value of non-Sendable type '() async -> Void' to nonisolated callee risks causing races in between 'self'-isolated and nonisolated uses
 58 |             Task {
 59 |                 await terminateAll()
[6/6] Compiling AsyncChannelKit AsyncThrowingChannel.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncChannelKit/AsyncThrowingChannel.swift:17:49: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
 15 |             }
 16 |             do {
 17 |                 let value: Element? = try await withTaskCancellationHandler { [channel] in
    |                                                 |- warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
    |                                                 `- note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
 18 |                     Task {
 19 |                         await channel.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncChannelKit/AsyncThrowingChannel.swift:61:15: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
 59 |
 60 |     public func send(_ element: Element) async {
 61 |         await withTaskCancellationHandler {
    |               |- warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
    |               `- note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
 62 |             Task {
 63 |                 await terminateAll()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncChannelKit/AsyncThrowingChannel.swift:61:15: warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
 59 |
 60 |     public func send(_ element: Element) async {
 61 |         await withTaskCancellationHandler {
    |               |- warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
    |               `- note: sending 'self'-isolated value of non-Sendable type '() async -> Void' to nonisolated callee risks causing races in between 'self'-isolated and nonisolated uses
 62 |             Task {
 63 |                 await terminateAll()
Build complete! (4.86s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "asynctesting",
      "requirement" : {
        "exact" : [
          "0.0.7"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/brennanMKE/AsyncTesting.git"
    }
  ],
  "manifest_display_name" : "AsyncChannelKit",
  "name" : "AsyncChannelKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "AsyncChannelKit",
      "targets" : [
        "AsyncChannelKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AsyncChannelKitTests",
      "module_type" : "SwiftTarget",
      "name" : "AsyncChannelKitTests",
      "path" : "Tests/AsyncChannelKitTests",
      "product_dependencies" : [
        "AsyncTesting"
      ],
      "sources" : [
        "AsyncChannelKitTests.swift"
      ],
      "target_dependencies" : [
        "AsyncChannelKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AsyncChannelKit",
      "module_type" : "SwiftTarget",
      "name" : "AsyncChannelKit",
      "path" : "Sources/AsyncChannelKit",
      "product_memberships" : [
        "AsyncChannelKit"
      ],
      "sources" : [
        "AsyncChannel.swift",
        "AsyncSequence+forEach.swift",
        "AsyncThrowingChannel.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Done.