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 B9Condition 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/b9swift/Condition.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/b9swift/Condition
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8b7d6f2 Merge branch 'develop'
Cloned https://github.com/b9swift/Condition.git
Revision (git rev-parse @):
8b7d6f223a395d792f1a3f9c869f62eec29a52db
SUCCESS checkout https://github.com/b9swift/Condition.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/b9swift/Condition.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/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/5] Emitting module B9Action
[5/5] Compiling B9Action B9Action.swift
[6/7] Compiling B9Condition B9Condition.swift
/Users/admin/builder/spi-builder-workspace/Sources/B9Condition/B9Condition.swift:107:32: warning: capture of 'self' with non-sendable type 'Condition<T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 27 |
 28 |  */
 29 | public final class Condition<T: SetAlgebra> {
    |                    `- note: generic class 'Condition' does not conform to the 'Sendable' protocol
 30 |
 31 |     /// Create a new Condition instance
    :
105 |         if timeout > 0 {
106 |             queue.asyncAfter(deadline: .now() + timeout) { [weak self, weak observer] in
107 |                 guard let sf = self, let observer = observer else { return }
    |                                `- warning: capture of 'self' with non-sendable type 'Condition<T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 |                 sf.remove(observer: observer)
109 |             }
/Users/admin/builder/spi-builder-workspace/Sources/B9Condition/B9Condition.swift:107:53: warning: capture of 'observer' with non-sendable type 'Condition<T>.Observer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 |         if timeout > 0 {
106 |             queue.asyncAfter(deadline: .now() + timeout) { [weak self, weak observer] in
107 |                 guard let sf = self, let observer = observer else { return }
    |                                                     `- warning: capture of 'observer' with non-sendable type 'Condition<T>.Observer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 |                 sf.remove(observer: observer)
109 |             }
    :
149 |     }
150 |
151 |     internal final class Observer: CustomDebugStringConvertible {
    |                          `- note: class 'Observer' does not conform to the 'Sendable' protocol
152 |         let flags: T
153 |         let action: Action
/Users/admin/builder/spi-builder-workspace/Sources/B9Condition/B9Condition.swift:135:32: warning: capture of 'self' with non-sendable type 'Condition<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 27 |
 28 |  */
 29 | public final class Condition<T: SetAlgebra> {
    |                    `- note: generic class 'Condition' does not conform to the 'Sendable' protocol
 30 |
 31 |     /// Create a new Condition instance
    :
133 |                         otherQueue.async {
134 |                             // 需临时保持实例
135 |                             if self.meets(observer.flags) {
    |                                `- warning: capture of 'self' with non-sendable type 'Condition<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 |                                 self.execute(observer: observer)
137 |                             }
/Users/admin/builder/spi-builder-workspace/Sources/B9Condition/B9Condition.swift:135:43: warning: capture of 'observer' with non-sendable type 'Condition<T>.Observer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
133 |                         otherQueue.async {
134 |                             // 需临时保持实例
135 |                             if self.meets(observer.flags) {
    |                                           `- warning: capture of 'observer' with non-sendable type 'Condition<T>.Observer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 |                                 self.execute(observer: observer)
137 |                             }
    :
149 |     }
150 |
151 |     internal final class Observer: CustomDebugStringConvertible {
    |                          `- note: class 'Observer' does not conform to the 'Sendable' protocol
152 |         let flags: T
153 |         let action: Action
/Users/admin/builder/spi-builder-workspace/Sources/B9Condition/B9Condition.swift:189:28: warning: capture of 'self' with non-sendable type 'Condition<T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 27 |
 28 |  */
 29 | public final class Condition<T: SetAlgebra> {
    |                    `- note: generic class 'Condition' does not conform to the 'Sendable' protocol
 30 |
 31 |     /// Create a new Condition instance
    :
187 |         lock.unlock()
188 |         (observer.queue ?? queue).async { [weak self, weak observer] in
189 |             guard let sf = self, let observer = observer else { return }
    |                            `- warning: capture of 'self' with non-sendable type 'Condition<T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
190 |             if sf.meets(observer.flags) {
191 |                 sf.execute(observer: observer)
/Users/admin/builder/spi-builder-workspace/Sources/B9Condition/B9Condition.swift:189:49: warning: capture of 'observer' with non-sendable type 'Condition<T>.Observer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 |     }
150 |
151 |     internal final class Observer: CustomDebugStringConvertible {
    |                          `- note: class 'Observer' does not conform to the 'Sendable' protocol
152 |         let flags: T
153 |         let action: Action
    :
187 |         lock.unlock()
188 |         (observer.queue ?? queue).async { [weak self, weak observer] in
189 |             guard let sf = self, let observer = observer else { return }
    |                                                 `- warning: capture of 'observer' with non-sendable type 'Condition<T>.Observer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
190 |             if sf.meets(observer.flags) {
191 |                 sf.execute(observer: observer)
[7/7] Emitting module B9Condition
Build complete! (25.73s)
Fetching https://github.com/b9swift/Action.git
[1/45] Fetching action
Fetched https://github.com/b9swift/Action.git from cache (0.71s)
Computing version for https://github.com/b9swift/Action.git
Computed https://github.com/b9swift/Action.git at 1.1.0 (0.68s)
Creating working copy for https://github.com/b9swift/Action.git
Working copy of https://github.com/b9swift/Action.git resolved at 1.1.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "action",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/b9swift/Action.git"
    }
  ],
  "manifest_display_name" : "B9Condition",
  "name" : "B9Condition",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "B9Condition",
      "targets" : [
        "B9Condition"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "B9ConditionTests",
      "module_type" : "SwiftTarget",
      "name" : "B9ConditionTests",
      "path" : "Tests/B9ConditionTests",
      "sources" : [
        "B9ConditionTests.swift"
      ],
      "target_dependencies" : [
        "B9Condition"
      ],
      "type" : "test"
    },
    {
      "c99name" : "B9Condition",
      "module_type" : "SwiftTarget",
      "name" : "B9Condition",
      "path" : "Sources/B9Condition",
      "product_dependencies" : [
        "B9Action"
      ],
      "product_memberships" : [
        "B9Condition"
      ],
      "sources" : [
        "B9Condition.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.