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 Pool 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/reswifq/pool.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/reswifq/pool
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 4f42595 Update README.md
Cloned https://github.com/reswifq/pool.git
Revision (git rev-parse @):
4f4259579e3b356e3d6464303087b2e3713d1a87
SUCCESS checkout https://github.com/reswifq/pool.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/reswifq/pool.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] Compiling Pool Pool.swift
/Users/admin/builder/spi-builder-workspace/Sources/Pool/Pool.swift:105:13: warning: capture of 'self' with non-sendable type 'Pool<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 23 | import Dispatch
 24 |
 25 | open class Pool<T> {
    |            `- note: generic class 'Pool' does not conform to the 'Sendable' protocol
 26 |
 27 |     // MARK: Initialization
    :
103 |
104 |         self.queue.async {
105 |             self.elements.append(element)
    |             `- warning: capture of 'self' with non-sendable type 'Pool<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 |             self.semaphore.signal()
107 |             completion?()
/Users/admin/builder/spi-builder-workspace/Sources/Pool/Pool.swift:105:34: warning: capture of 'element' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 23 | import Dispatch
 24 |
 25 | open class Pool<T> {
    |                 `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 26 |
 27 |     // MARK: Initialization
    :
103 |
104 |         self.queue.async {
105 |             self.elements.append(element)
    |                                  `- warning: capture of 'element' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 |             self.semaphore.signal()
107 |             completion?()
/Users/admin/builder/spi-builder-workspace/Sources/Pool/Pool.swift:107:13: warning: capture of 'completion' with non-sendable type '(() -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 |             self.elements.append(element)
106 |             self.semaphore.signal()
107 |             completion?()
    |             |- warning: capture of 'completion' with non-sendable type '(() -> Void)?' 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'
108 |         }
109 |     }
[4/4] Emitting module Pool
Build complete! (15.95s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Pool",
  "name" : "Pool",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Pool",
      "targets" : [
        "Pool"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PoolTests",
      "module_type" : "SwiftTarget",
      "name" : "PoolTests",
      "path" : "Tests/PoolTests",
      "sources" : [
        "PoolTests.swift"
      ],
      "target_dependencies" : [
        "Pool"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Pool",
      "module_type" : "SwiftTarget",
      "name" : "Pool",
      "path" : "Sources/Pool",
      "product_memberships" : [
        "Pool"
      ],
      "sources" : [
        "Pool.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.