This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 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/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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/AsyncSwiftKits/AsyncChannelKit.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/6] Compiling AsyncChannelKit AsyncSequence+forEach.swift
[4/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:49:15: warning: sending 'self'-isolated value of type '(AsyncChannel<Element>.NextContinuation) -> Void' (aka '(CheckedContinuation<Optional<Element>, Never>) -> ()') with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
 47 |
 48 |     public func next() async -> Element? {
 49 |         await withCheckedContinuation { (continuation: NextContinuation) in
    |               `- warning: sending 'self'-isolated value of type '(AsyncChannel<Element>.NextContinuation) -> Void' (aka '(CheckedContinuation<Optional<Element>, Never>) -> ()') with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
 50 |             nexts.append(continuation)
 51 |             processNext()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncChannelKit/AsyncChannel.swift:57:15: warning: sending 'self'-isolated value of type '() async -> Void' with later accesses to nonisolated context 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 'self'-isolated value of type '() async -> Void' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
 58 |             Task {
 59 |                 await terminateAll()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncChannelKit/AsyncChannel.swift:62:19: warning: sending 'self'-isolated value of type '(AsyncChannel<Element>.SendContinuation) -> Void' (aka '(CheckedContinuation<(), Never>) -> ()') with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
 60 |             }
 61 |         } operation: {
 62 |             await withCheckedContinuation { (continuation: SendContinuation) in
    |                   `- warning: sending 'self'-isolated value of type '(AsyncChannel<Element>.SendContinuation) -> Void' (aka '(CheckedContinuation<(), Never>) -> ()') with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
 63 |                 elements.append(element)
 64 |                 sends.append(continuation)
[5/6] Emitting module AsyncChannelKit
[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:54:19: warning: sending 'self'-isolated value of type '(AsyncThrowingChannel<Element, Failure>.NextContinuation) -> Void' (aka '(CheckedContinuation<Optional<Element>, any Error>) -> ()') with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
 52 |
 53 |     public func next() async throws -> Element? {
 54 |         try await withCheckedThrowingContinuation { (continuation: NextContinuation) in
    |                   `- warning: sending 'self'-isolated value of type '(AsyncThrowingChannel<Element, Failure>.NextContinuation) -> Void' (aka '(CheckedContinuation<Optional<Element>, any Error>) -> ()') with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
 55 |             nexts.append(continuation)
 56 |             processNext()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncChannelKit/AsyncThrowingChannel.swift:61:15: warning: sending 'self'-isolated value of type '() async -> Void' with later accesses to nonisolated context 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 'self'-isolated value of type '() async -> Void' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
 62 |             Task {
 63 |                 await terminateAll()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncChannelKit/AsyncThrowingChannel.swift:66:19: warning: sending 'self'-isolated value of type '(AsyncThrowingChannel<Element, Failure>.SendContinuation) -> Void' (aka '(CheckedContinuation<(), Never>) -> ()') with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
 64 |             }
 65 |         } operation: {
 66 |             await withCheckedContinuation { (continuation: SendContinuation) in
    |                   `- warning: sending 'self'-isolated value of type '(AsyncThrowingChannel<Element, Failure>.SendContinuation) -> Void' (aka '(CheckedContinuation<(), Never>) -> ()') with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
 67 |                 elements.append(element)
 68 |                 sends.append(continuation)
Build complete! (18.49s)
Fetching https://github.com/brennanMKE/AsyncTesting.git
[1/362] Fetching asynctesting
Fetched https://github.com/brennanMKE/AsyncTesting.git from cache (0.85s)
Computing version for https://github.com/brennanMKE/AsyncTesting.git
Computed https://github.com/brennanMKE/AsyncTesting.git at 0.0.7 (0.66s)
Creating working copy for https://github.com/brennanMKE/AsyncTesting.git
Working copy of https://github.com/brennanMKE/AsyncTesting.git resolved at 0.0.7
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.