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 AsyncValue, reference 1.1.0 (c04bdc), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 01:09:49 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/BrentMifsud/AsyncValue.git
Reference: 1.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/BrentMifsud/AsyncValue
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at c04bdc3 Update README to reflect latest api changes (#9)
Cloned https://github.com/BrentMifsud/AsyncValue.git
Revision (git rev-parse @):
c04bdc325ad7f48dd2eb43bdb401c6cfaa5019e3
SUCCESS checkout https://github.com/BrentMifsud/AsyncValue.git at 1.1.0
========================================
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": "asyncvalue",
      "name": "AsyncValue",
      "url": "https://github.com/BrentMifsud/AsyncValue.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AsyncValue",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/BrentMifsud/AsyncValue.git
[1/221] Fetching asyncvalue
Fetched https://github.com/BrentMifsud/AsyncValue.git from cache (0.65s)
Creating working copy for https://github.com/BrentMifsud/AsyncValue.git
Working copy of https://github.com/BrentMifsud/AsyncValue.git resolved at 1.1.0 (c04bdc3)
warning: '.resolve-product-dependencies': dependency 'asyncvalue' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/BrentMifsud/AsyncValue.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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--7754E27361AE5C74.txt
[3/6] Compiling AsyncValue ContinuationStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncValue/ContinuationStorage.swift:29:26: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
27 |     func yield(_ value: Value) {
28 |         for (_, continuation) in continuations {
29 |             continuation.yield(value)
   |                          |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
   |                          `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
30 |         }
31 |     }
[4/6] Compiling AsyncValue AsyncValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncValue/AsyncValue.swift:103:17: warning: capture of 'self' with non-sendable type 'AsyncValue<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 75 | ///   ```
 76 | @propertyWrapper
 77 | public struct AsyncValue<Value: Equatable> {
    |               `- note: consider making generic struct 'AsyncValue' conform to the 'Sendable' protocol
 78 |     public enum YieldBehavior {
 79 |         case newValues
    :
101 |
102 |             continuation.onTermination = { @Sendable _ in
103 |                 storage.removeContinuation(for: uuid)
    |                 `- warning: capture of 'self' with non-sendable type 'AsyncValue<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |             }
105 |         }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncValue/AsyncValue.swift:99:30: warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
 97 |
 98 |             if behavior == .allValues {
 99 |                 continuation.yield(wrappedValue)
    |                              |- warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
    |                              `- note: task-isolated 'self.wrappedValue' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
100 |             }
101 |
[5/6] Compiling AsyncValue View+AsyncValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncValue/View+AsyncValue.swift:54:21: warning: non-sendable type 'Sequence.Element?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
 52 |             task {
 53 |                 do {
 54 |                     for try await value in sequence {
    |                     `- warning: non-sendable type 'Sequence.Element?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
 55 |                         await handler(value)
 56 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncValue/View+AsyncValue.swift:69:25: warning: non-sendable type 'Sequence.Element?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
 67 |                 task = Task {
 68 |                     do {
 69 |                         for try await value in sequence {
    |                         `- warning: non-sendable type 'Sequence.Element?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
 70 |                             await handler(value)
 71 |                         }
[6/6] Emitting module AsyncValue
Build complete! (11.05s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "AsyncValue",
  "name" : "AsyncValue",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "AsyncValue",
      "targets" : [
        "AsyncValue"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AsyncValueTests",
      "module_type" : "SwiftTarget",
      "name" : "AsyncValueTests",
      "path" : "Tests/AsyncValueTests",
      "sources" : [
        "AsyncValueTests.swift"
      ],
      "target_dependencies" : [
        "AsyncValue"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AsyncValue",
      "module_type" : "SwiftTarget",
      "name" : "AsyncValue",
      "path" : "Sources/AsyncValue",
      "product_memberships" : [
        "AsyncValue"
      ],
      "sources" : [
        "AsyncValue.swift",
        "ContinuationStorage.swift",
        "View+AsyncValue.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.