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 AsyncValue 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/BrentMifsud/AsyncValue.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/BrentMifsud/AsyncValue
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/BrentMifsud/AsyncValue.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] Emitting module AsyncValue
[4/6] Compiling AsyncValue View+AsyncValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncValue/View+AsyncValue.swift:54:44: warning: capture of 'sequence' with non-sendable type 'Sequence' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 45 |     ///  }
 46 |     /// ```
 47 |     @ViewBuilder func onReceive<Sequence: AsyncSequence>(
    |                                 `- note: consider making generic parameter 'Sequence' conform to the 'Sendable' protocol
 48 |         _ sequence: Sequence,
 49 |         perform handler: @escaping (Sequence.Element) async -> Void
    :
 52 |             task {
 53 |                 do {
 54 |                     for try await value in sequence {
    |                                            `- warning: capture of 'sequence' with non-sendable type 'Sequence' in a `@Sendable` closure; 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:55:31: warning: capture of 'handler' with non-sendable type '(Sequence.Element) async -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 |                 do {
 54 |                     for try await value in sequence {
 55 |                         await handler(value)
    |                               |- warning: capture of 'handler' with non-sendable type '(Sequence.Element) async -> 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'
 56 |                     }
 57 |                 } catch is CancellationError {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncValue/View+AsyncValue.swift:69:48: warning: capture of 'sequence' with non-sendable type 'Sequence' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 45 |     ///  }
 46 |     /// ```
 47 |     @ViewBuilder func onReceive<Sequence: AsyncSequence>(
    |                                 `- note: consider making generic parameter 'Sequence' conform to the 'Sendable' protocol
 48 |         _ sequence: Sequence,
 49 |         perform handler: @escaping (Sequence.Element) async -> Void
    :
 67 |                 task = Task {
 68 |                     do {
 69 |                         for try await value in sequence {
    |                                                `- warning: capture of 'sequence' with non-sendable type 'Sequence' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 70 |                             await handler(value)
 71 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncValue/View+AsyncValue.swift:70:35: warning: capture of 'handler' with non-sendable type '(Sequence.Element) async -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 68 |                     do {
 69 |                         for try await value in sequence {
 70 |                             await handler(value)
    |                                   |- warning: capture of 'handler' with non-sendable type '(Sequence.Element) async -> 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'
 71 |                         }
 72 |                     } catch is CancellationError {
[5/6] Compiling AsyncValue ContinuationStorage.swift
[6/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 |         }
Build complete! (31.23s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.