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 SwiftAsyncSerialQueue, reference 0.2.0 (08eb62), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 06:33:10 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dannys42/SwiftAsyncSerialQueue.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dannys42/SwiftAsyncSerialQueue
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at 08eb625 Remove unused code
Cloned https://github.com/dannys42/SwiftAsyncSerialQueue.git
Revision (git rev-parse @):
08eb6252d4765a9a94957872aa578b8d7a667429
SUCCESS checkout https://github.com/dannys42/SwiftAsyncSerialQueue.git at 0.2.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/dannys42/SwiftAsyncSerialQueue.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun 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-117DEE11B69C53C9.txt
[3/6] Compiling AsyncSerialQueue SimpleLock.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncSerialQueue/Internal/SimpleLock.swift:25:18: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 20 |
 21 | @propertyWrapper
 22 | struct SimpleLock<Value>: SimpleLockInterface {
    |                   `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 23 |     var wrappedValue: Value {
 24 |         get {
 25 |             self.withLock({ $0 })
    |                  `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 26 |         }
 27 |         set {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncSerialQueue/Internal/SimpleLock.swift:28:34: warning: capture of 'newValue' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 20 |
 21 | @propertyWrapper
 22 | struct SimpleLock<Value>: SimpleLockInterface {
    |                   `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 23 |     var wrappedValue: Value {
 24 |         get {
    :
 26 |         }
 27 |         set {
 28 |             self.withLock({ $0 = newValue })
    |                                  `- warning: capture of 'newValue' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 29 |         }
 30 |     }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncSerialQueue/Internal/SimpleLock.swift:73:28: warning: type 'V' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 66 |
 67 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, visionOS 1.0, *)
 68 | final class SimpleUnfairLock<V>: @unchecked Sendable, SimpleLockInterface {
    |                              `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
 69 |
 70 |     private var unfairLock: OSAllocatedUnfairLock<V>
 71 |
 72 |     init(initialState: V) {
 73 |         self.unfairLock = .init(initialState: initialState)
    |                            `- warning: type 'V' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 74 |     }
 75 |
[4/6] Compiling AsyncSerialQueue Executor.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncSerialQueue/Internal/Executor.swift:27:26: warning: task-isolated value of type '() async -> Void' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
25 |         self.taskStream = taskStream
26 |
27 |         self.task = Task.detached(priority: priority) {
   |                          `- warning: task-isolated value of type '() async -> Void' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
28 |             for await closure in taskStream {
29 |                 await closure()
[5/6] Emitting module AsyncSerialQueue
[6/6] Compiling AsyncSerialQueue AsyncSerialQueue.swift
Build complete! (7.19s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftAsyncSerialQueue",
  "name" : "SwiftAsyncSerialQueue",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "AsyncSerialQueue",
      "targets" : [
        "AsyncSerialQueue"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AsyncSerialQueueTests",
      "module_type" : "SwiftTarget",
      "name" : "AsyncSerialQueueTests",
      "path" : "Tests/AsyncSerialQueueTests",
      "sources" : [
        "ExecutorRetainCycleTests.swift",
        "ReentrancyTests.swift",
        "RetainCycleTests.swift",
        "SwiftAsyncSerialQueueTests.swift",
        "TestConfiguration.swift",
        "Utilities/ArrayExtension.swift",
        "Utilities/DispatchGroupExtension.swift",
        "Utilities/ThreadSafeCounter.swift",
        "Utilities/ThreadSafeIntArray.swift",
        "Utilities/WeakBox.swift"
      ],
      "target_dependencies" : [
        "AsyncSerialQueue"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AsyncSerialQueue",
      "module_type" : "SwiftTarget",
      "name" : "AsyncSerialQueue",
      "path" : "Sources/AsyncSerialQueue",
      "product_memberships" : [
        "AsyncSerialQueue"
      ],
      "sources" : [
        "AsyncSerialQueue.swift",
        "Internal/Executor.swift",
        "Internal/SimpleLock.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.