The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of CollectionConcurrencyKit, reference 0.2.0 (903a94), with Swift 6.0 for macOS (SPM) on 2 Dec 2024 03:11:00 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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/happn-app/CollectionConcurrencyKit.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/happn-app/CollectionConcurrencyKit
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at 903a94a Add support for dictionary values maps
Cloned https://github.com/happn-app/CollectionConcurrencyKit.git
Revision (git rev-parse @):
903a94af1104ccf907982dd35f980b60d95025a3
SUCCESS checkout https://github.com/happn-app/CollectionConcurrencyKit.git at 0.2.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": "collectionconcurrencykit",
      "name": "CollectionConcurrencyKit",
      "url": "https://github.com/happn-app/CollectionConcurrencyKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CollectionConcurrencyKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/happn-app/CollectionConcurrencyKit.git
[1/72] Fetching collectionconcurrencykit
Fetched https://github.com/happn-app/CollectionConcurrencyKit.git from cache (0.69s)
Creating working copy for https://github.com/happn-app/CollectionConcurrencyKit.git
Working copy of https://github.com/happn-app/CollectionConcurrencyKit.git resolved at 0.2.0 (903a94a)
warning: '.resolve-product-dependencies': dependency 'collectionconcurrencykit' 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/happn-app/CollectionConcurrencyKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CollectionConcurrencyKit",
  "name" : "CollectionConcurrencyKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "CollectionConcurrencyKit",
      "targets" : [
        "CollectionConcurrencyKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CollectionConcurrencyKitTests",
      "module_type" : "SwiftTarget",
      "name" : "CollectionConcurrencyKitTests",
      "path" : "Tests",
      "sources" : [
        "CompactMapTests.swift",
        "FlatMapTests.swift",
        "ForEachTests.swift",
        "MapTests.swift",
        "TestCase.swift",
        "TimingTests.swift"
      ],
      "target_dependencies" : [
        "CollectionConcurrencyKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CollectionConcurrencyKit",
      "module_type" : "SwiftTarget",
      "name" : "CollectionConcurrencyKit",
      "path" : "Sources",
      "product_memberships" : [
        "CollectionConcurrencyKit"
      ],
      "sources" : [
        "CollectionConcurrencyKit.swift",
        "DictionarySupport.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
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/5] Compiling CollectionConcurrencyKit DictionarySupport.swift
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:22:16: warning: type 'Key' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 20 |
 21 | 	func concurrentMapValues<T>(withPriority priority: TaskPriority? = nil, _ transform: @escaping (Value) async -> T) async -> [Key: T] {
 22 | 		return await withTaskGroup(of: (key: Key, value: T).self) { group in
    |                `- warning: type 'Key' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 23 | 			for (key, element) in self {
 24 | 				group.addTask(priority: priority) {
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:22:16: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 19 | 	}
 20 |
 21 | 	func concurrentMapValues<T>(withPriority priority: TaskPriority? = nil, _ transform: @escaping (Value) async -> T) async -> [Key: T] {
    |                           `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 22 | 		return await withTaskGroup(of: (key: Key, value: T).self) { group in
    |                `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 23 | 			for (key, element) in self {
 24 | 				group.addTask(priority: priority) {
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:24:11: warning: type 'Key' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 22 | 		return await withTaskGroup(of: (key: Key, value: T).self) { group in
 23 | 			for (key, element) in self {
 24 | 				group.addTask(priority: priority) {
    |           `- warning: type 'Key' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 25 | 					return await (key, transform(element))
 26 | 				}
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:24:11: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 19 | 	}
 20 |
 21 | 	func concurrentMapValues<T>(withPriority priority: TaskPriority? = nil, _ transform: @escaping (Value) async -> T) async -> [Key: T] {
    |                           `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 22 | 		return await withTaskGroup(of: (key: Key, value: T).self) { group in
 23 | 			for (key, element) in self {
 24 | 				group.addTask(priority: priority) {
    |           `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 25 | 					return await (key, transform(element))
 26 | 				}
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:30:33: warning: type 'Key' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 28 |
 29 | 			var res = [Key: T]()
 30 | 			while let next = await group.next() {
    |                                 `- warning: type 'Key' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 31 | 				assert(res[next.key] == nil)
 32 | 				res[next.key] = next.value
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:30:33: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 19 | 	}
 20 |
 21 | 	func concurrentMapValues<T>(withPriority priority: TaskPriority? = nil, _ transform: @escaping (Value) async -> T) async -> [Key: T] {
    |                           `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 22 | 		return await withTaskGroup(of: (key: Key, value: T).self) { group in
 23 | 			for (key, element) in self {
    :
 28 |
 29 | 			var res = [Key: T]()
 30 | 			while let next = await group.next() {
    |                                 `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 31 | 				assert(res[next.key] == nil)
 32 | 				res[next.key] = next.value
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:39:20: warning: type 'Key' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 37 |
 38 | 	func concurrentMapValues<T>(withPriority priority: TaskPriority? = nil, _ transform: @escaping (Value) async throws -> T) async throws -> [Key: T] {
 39 | 		return try await withThrowingTaskGroup(of: (key: Key, value: T).self) { group in
    |                    `- warning: type 'Key' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 40 | 			for (key, element) in self {
 41 | 				group.addTask(priority: priority) {
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:39:20: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 36 | 	}
 37 |
 38 | 	func concurrentMapValues<T>(withPriority priority: TaskPriority? = nil, _ transform: @escaping (Value) async throws -> T) async throws -> [Key: T] {
    |                           `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 39 | 		return try await withThrowingTaskGroup(of: (key: Key, value: T).self) { group in
    |                    `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 40 | 			for (key, element) in self {
 41 | 				group.addTask(priority: priority) {
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:41:11: warning: type 'Key' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 39 | 		return try await withThrowingTaskGroup(of: (key: Key, value: T).self) { group in
 40 | 			for (key, element) in self {
 41 | 				group.addTask(priority: priority) {
    |           `- warning: type 'Key' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 42 | 					return try await (key, transform(element))
 43 | 				}
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:41:11: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 36 | 	}
 37 |
 38 | 	func concurrentMapValues<T>(withPriority priority: TaskPriority? = nil, _ transform: @escaping (Value) async throws -> T) async throws -> [Key: T] {
    |                           `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 39 | 		return try await withThrowingTaskGroup(of: (key: Key, value: T).self) { group in
 40 | 			for (key, element) in self {
 41 | 				group.addTask(priority: priority) {
    |           `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 42 | 					return try await (key, transform(element))
 43 | 				}
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:47:37: warning: type 'Key' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 45 |
 46 | 			var res = [Key: T]()
 47 | 			while let next = try await group.next() {
    |                                     `- warning: type 'Key' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 48 | 				assert(res[next.key] == nil)
 49 | 				res[next.key] = next.value
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:47:37: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 36 | 	}
 37 |
 38 | 	func concurrentMapValues<T>(withPriority priority: TaskPriority? = nil, _ transform: @escaping (Value) async throws -> T) async throws -> [Key: T] {
    |                           `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 39 | 		return try await withThrowingTaskGroup(of: (key: Key, value: T).self) { group in
 40 | 			for (key, element) in self {
    :
 45 |
 46 | 			var res = [Key: T]()
 47 | 			while let next = try await group.next() {
    |                                     `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 48 | 				assert(res[next.key] == nil)
 49 | 				res[next.key] = next.value
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:73:16: warning: type 'Key' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 71 |
 72 | 	func concurrentCompactMap<T>(withPriority priority: TaskPriority? = nil, _ transform: @escaping (Value) async -> T?) async -> [Key: T] {
 73 | 		return await withTaskGroup(of: (key: Key, value: T?).self) { group in
    |                `- warning: type 'Key' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 74 | 			for (key, element) in self {
 75 | 				group.addTask(priority: priority) {
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:73:16: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 70 | 	}
 71 |
 72 | 	func concurrentCompactMap<T>(withPriority priority: TaskPriority? = nil, _ transform: @escaping (Value) async -> T?) async -> [Key: T] {
    |                            `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 73 | 		return await withTaskGroup(of: (key: Key, value: T?).self) { group in
    |                `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 74 | 			for (key, element) in self {
 75 | 				group.addTask(priority: priority) {
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:75:11: warning: type 'Key' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 73 | 		return await withTaskGroup(of: (key: Key, value: T?).self) { group in
 74 | 			for (key, element) in self {
 75 | 				group.addTask(priority: priority) {
    |           `- warning: type 'Key' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 76 | 					return await (key, transform(element))
 77 | 				}
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:75:11: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 70 | 	}
 71 |
 72 | 	func concurrentCompactMap<T>(withPriority priority: TaskPriority? = nil, _ transform: @escaping (Value) async -> T?) async -> [Key: T] {
    |                            `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 73 | 		return await withTaskGroup(of: (key: Key, value: T?).self) { group in
 74 | 			for (key, element) in self {
 75 | 				group.addTask(priority: priority) {
    |           `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 76 | 					return await (key, transform(element))
 77 | 				}
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:81:33: warning: type 'Key' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 79 |
 80 | 			var res = [Key: T]()
 81 | 			while let next = await group.next() {
    |                                 `- warning: type 'Key' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 82 | 				assert(res[next.key] == nil)
 83 | 				if let v = next.value {
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:81:33: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 70 | 	}
 71 |
 72 | 	func concurrentCompactMap<T>(withPriority priority: TaskPriority? = nil, _ transform: @escaping (Value) async -> T?) async -> [Key: T] {
    |                            `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 73 | 		return await withTaskGroup(of: (key: Key, value: T?).self) { group in
 74 | 			for (key, element) in self {
    :
 79 |
 80 | 			var res = [Key: T]()
 81 | 			while let next = await group.next() {
    |                                 `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 82 | 				assert(res[next.key] == nil)
 83 | 				if let v = next.value {
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:92:20: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 89 | 	}
 90 |
 91 | 	func concurrentCompactMap<T>(withPriority priority: TaskPriority? = nil, _ transform: @escaping (Element) async throws -> T?) async throws -> [T] {
    |                            `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 92 | 		return try await withThrowingTaskGroup(of: (offset: Int, value: T?).self) { group in
    |                    `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 93 | 			for (idx, element) in enumerated() {
 94 | 				group.addTask(priority: priority) {
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:94:11: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 89 | 	}
 90 |
 91 | 	func concurrentCompactMap<T>(withPriority priority: TaskPriority? = nil, _ transform: @escaping (Element) async throws -> T?) async throws -> [T] {
    |                            `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 92 | 		return try await withThrowingTaskGroup(of: (offset: Int, value: T?).self) { group in
 93 | 			for (idx, element) in enumerated() {
 94 | 				group.addTask(priority: priority) {
    |           `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 95 | 					return try await (idx, transform(element))
 96 | 				}
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:100:37: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 89 | 	}
 90 |
 91 | 	func concurrentCompactMap<T>(withPriority priority: TaskPriority? = nil, _ transform: @escaping (Element) async throws -> T?) async throws -> [T] {
    |                            `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 92 | 		return try await withThrowingTaskGroup(of: (offset: Int, value: T?).self) { group in
 93 | 			for (idx, element) in enumerated() {
    :
 98 |
 99 | 			var res = [(offset: Int, value: T)]()
100 | 			while let next = try await group.next() {
    |                                     `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
101 | 				if let v = next.value {
102 | 					res.append((offset: next.offset, value: v))
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:24:39: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 22 | 		return await withTaskGroup(of: (key: Key, value: T).self) { group in
 23 | 			for (key, element) in self {
 24 | 				group.addTask(priority: priority) {
    |                                       `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 25 | 					return await (key, transform(element))
    |                    |    |         `- note: closure captures non-Sendable 'element'
    |                    |    `- note: closure captures non-Sendable 'transform'
    |                    `- note: closure captures non-Sendable 'key'
 26 | 				}
 27 | 			}
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:41:39: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 39 | 		return try await withThrowingTaskGroup(of: (key: Key, value: T).self) { group in
 40 | 			for (key, element) in self {
 41 | 				group.addTask(priority: priority) {
    |                                       `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 42 | 					return try await (key, transform(element))
    |                        |    |         `- note: closure captures non-Sendable 'element'
    |                        |    `- note: closure captures non-Sendable 'transform'
    |                        `- note: closure captures non-Sendable 'key'
 43 | 				}
 44 | 			}
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:75:39: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 73 | 		return await withTaskGroup(of: (key: Key, value: T?).self) { group in
 74 | 			for (key, element) in self {
 75 | 				group.addTask(priority: priority) {
    |                                       `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 76 | 					return await (key, transform(element))
    |                    |    |         `- note: closure captures non-Sendable 'element'
    |                    |    `- note: closure captures non-Sendable 'transform'
    |                    `- note: closure captures non-Sendable 'key'
 77 | 				}
 78 | 			}
/Users/admin/builder/spi-builder-workspace/Sources/DictionarySupport.swift:94:39: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 92 | 		return try await withThrowingTaskGroup(of: (offset: Int, value: T?).self) { group in
 93 | 			for (idx, element) in enumerated() {
 94 | 				group.addTask(priority: priority) {
    |                                       `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 95 | 					return try await (idx, transform(element))
    |                             `- note: closure captures 'transform' which is accessible to code in the current task
 96 | 				}
 97 | 			}
[4/5] Emitting module CollectionConcurrencyKit
[5/5] Compiling CollectionConcurrencyKit CollectionConcurrencyKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:124:22: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
118 |     /// - returns: The transformed values as an array. The order of
119 |     ///   the transformed values will match the original sequence.
120 |     func concurrentMap<T>(
    |                        `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
121 |         withPriority priority: TaskPriority? = nil,
122 |         _ transform: @escaping (Element) async -> T
123 |     ) async -> [T] {
124 |         return await withTaskGroup(of: (offset: Int, value: T).self) { group in
    |                      `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
125 |             for (idx, element) in enumerated() {
126 |                 group.addTask(priority: priority) {
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:126:23: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
118 |     /// - returns: The transformed values as an array. The order of
119 |     ///   the transformed values will match the original sequence.
120 |     func concurrentMap<T>(
    |                        `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
121 |         withPriority priority: TaskPriority? = nil,
122 |         _ transform: @escaping (Element) async -> T
    :
124 |         return await withTaskGroup(of: (offset: Int, value: T).self) { group in
125 |             for (idx, element) in enumerated() {
126 |                 group.addTask(priority: priority) {
    |                       `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
127 |                     return await (idx, transform(element))
128 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:132:42: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
118 |     /// - returns: The transformed values as an array. The order of
119 |     ///   the transformed values will match the original sequence.
120 |     func concurrentMap<T>(
    |                        `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
121 |         withPriority priority: TaskPriority? = nil,
122 |         _ transform: @escaping (Element) async -> T
    :
130 |
131 |             var res = [(offset: Int, value: T)]()
132 |             while let next = await group.next() {
    |                                          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
133 |                 res.append(next)
134 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:159:26: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
153 |     ///   the transformed values will match the original sequence.
154 |     /// - throws: Rethrows any error thrown by the passed closure.
155 |     func concurrentMap<T>(
    |                        `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
156 |         withPriority priority: TaskPriority? = nil,
157 |         _ transform: @escaping (Element) async throws -> T
158 |     ) async throws -> [T] {
159 |         return try await withThrowingTaskGroup(of: (offset: Int, value: T).self) { group in
    |                          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
160 |             for (idx, element) in enumerated() {
161 |                 group.addTask(priority: priority) {
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:161:23: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
153 |     ///   the transformed values will match the original sequence.
154 |     /// - throws: Rethrows any error thrown by the passed closure.
155 |     func concurrentMap<T>(
    |                        `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
156 |         withPriority priority: TaskPriority? = nil,
157 |         _ transform: @escaping (Element) async throws -> T
    :
159 |         return try await withThrowingTaskGroup(of: (offset: Int, value: T).self) { group in
160 |             for (idx, element) in enumerated() {
161 |                 group.addTask(priority: priority) {
    |                       `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
162 |                     return try await (idx, transform(element))
163 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:167:46: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
153 |     ///   the transformed values will match the original sequence.
154 |     /// - throws: Rethrows any error thrown by the passed closure.
155 |     func concurrentMap<T>(
    |                        `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
156 |         withPriority priority: TaskPriority? = nil,
157 |         _ transform: @escaping (Element) async throws -> T
    :
165 |
166 |             var res = [(offset: Int, value: T)]()
167 |             while let next = try await group.next() {
    |                                              `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
168 |                 res.append(next)
169 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:227:22: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
221 |     ///   the transformed values will match the original sequence,
222 |     ///   except for the values that were transformed into `nil`.
223 |     func concurrentCompactMap<T>(
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
224 |         withPriority priority: TaskPriority? = nil,
225 |         _ transform: @escaping (Element) async -> T?
226 |     ) async -> [T] {
227 |         return await withTaskGroup(of: (offset: Int, value: T?).self) { group in
    |                      `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
228 |             for (idx, element) in enumerated() {
229 |                 group.addTask(priority: priority) {
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:229:23: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
221 |     ///   the transformed values will match the original sequence,
222 |     ///   except for the values that were transformed into `nil`.
223 |     func concurrentCompactMap<T>(
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
224 |         withPriority priority: TaskPriority? = nil,
225 |         _ transform: @escaping (Element) async -> T?
    :
227 |         return await withTaskGroup(of: (offset: Int, value: T?).self) { group in
228 |             for (idx, element) in enumerated() {
229 |                 group.addTask(priority: priority) {
    |                       `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
230 |                     return await (idx, transform(element))
231 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:235:42: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
221 |     ///   the transformed values will match the original sequence,
222 |     ///   except for the values that were transformed into `nil`.
223 |     func concurrentCompactMap<T>(
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
224 |         withPriority priority: TaskPriority? = nil,
225 |         _ transform: @escaping (Element) async -> T?
    :
233 |
234 |             var res = [(offset: Int, value: T)]()
235 |             while let next = await group.next() {
    |                                          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
236 |                 if let v = next.value {
237 |                     res.append((offset: next.offset, value: v))
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:266:26: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 |     ///   except for the values that were transformed into `nil`.
261 |     /// - throws: Rethrows any error thrown by the passed closure.
262 |     func concurrentCompactMap<T>(
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
263 |         withPriority priority: TaskPriority? = nil,
264 |         _ transform: @escaping (Element) async throws -> T?
265 |     ) async throws -> [T] {
266 |         return try await withThrowingTaskGroup(of: (offset: Int, value: T?).self) { group in
    |                          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
267 |             for (idx, element) in enumerated() {
268 |                 group.addTask(priority: priority) {
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:268:23: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 |     ///   except for the values that were transformed into `nil`.
261 |     /// - throws: Rethrows any error thrown by the passed closure.
262 |     func concurrentCompactMap<T>(
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
263 |         withPriority priority: TaskPriority? = nil,
264 |         _ transform: @escaping (Element) async throws -> T?
    :
266 |         return try await withThrowingTaskGroup(of: (offset: Int, value: T?).self) { group in
267 |             for (idx, element) in enumerated() {
268 |                 group.addTask(priority: priority) {
    |                       `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
269 |                     return try await (idx, transform(element))
270 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:274:46: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 |     ///   except for the values that were transformed into `nil`.
261 |     /// - throws: Rethrows any error thrown by the passed closure.
262 |     func concurrentCompactMap<T>(
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
263 |         withPriority priority: TaskPriority? = nil,
264 |         _ transform: @escaping (Element) async throws -> T?
    :
272 |
273 |             var res = [(offset: Int, value: T)]()
274 |             while let next = try await group.next() {
    |                                              `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
275 |                 if let v = next.value {
276 |                     res.append((offset: next.offset, value: v))
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:334:22: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
328 |     ///   with the results of each closure call appearing in-order
329 |     ///   within the returned array.
330 |     func concurrentFlatMap<T: Sequence>(
    |                            `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
331 |         withPriority priority: TaskPriority? = nil,
332 |         _ transform: @escaping (Element) async -> T
333 |     ) async -> [T.Element] {
334 |         return await withTaskGroup(of: (offset: Int, value: T).self) { group in
    |                      `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
335 |             for (idx, element) in enumerated() {
336 |                 group.addTask(priority: priority) {
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:336:23: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
328 |     ///   with the results of each closure call appearing in-order
329 |     ///   within the returned array.
330 |     func concurrentFlatMap<T: Sequence>(
    |                            `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
331 |         withPriority priority: TaskPriority? = nil,
332 |         _ transform: @escaping (Element) async -> T
    :
334 |         return await withTaskGroup(of: (offset: Int, value: T).self) { group in
335 |             for (idx, element) in enumerated() {
336 |                 group.addTask(priority: priority) {
    |                       `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
337 |                     return await (idx, transform(element))
338 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:342:42: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
328 |     ///   with the results of each closure call appearing in-order
329 |     ///   within the returned array.
330 |     func concurrentFlatMap<T: Sequence>(
    |                            `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
331 |         withPriority priority: TaskPriority? = nil,
332 |         _ transform: @escaping (Element) async -> T
    :
340 |
341 |             var res = [(offset: Int, value: T)]()
342 |             while let next = await group.next() {
    |                                          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
343 |                 res.append(next)
344 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:372:26: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
366 |     ///   within the returned array.
367 |     /// - throws: Rethrows any error thrown by the passed closure.
368 |     func concurrentFlatMap<T: Sequence>(
    |                            `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
369 |         withPriority priority: TaskPriority? = nil,
370 |         _ transform: @escaping (Element) async throws -> T
371 |     ) async throws -> [T.Element] {
372 |         return try await withThrowingTaskGroup(of: (offset: Int, value: T).self) { group in
    |                          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
373 |             for (idx, element) in enumerated() {
374 |                 group.addTask(priority: priority) {
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:374:23: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
366 |     ///   within the returned array.
367 |     /// - throws: Rethrows any error thrown by the passed closure.
368 |     func concurrentFlatMap<T: Sequence>(
    |                            `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
369 |         withPriority priority: TaskPriority? = nil,
370 |         _ transform: @escaping (Element) async throws -> T
    :
372 |         return try await withThrowingTaskGroup(of: (offset: Int, value: T).self) { group in
373 |             for (idx, element) in enumerated() {
374 |                 group.addTask(priority: priority) {
    |                       `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
375 |                     return try await (idx, transform(element))
376 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:380:46: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
366 |     ///   within the returned array.
367 |     /// - throws: Rethrows any error thrown by the passed closure.
368 |     func concurrentFlatMap<T: Sequence>(
    |                            `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
369 |         withPriority priority: TaskPriority? = nil,
370 |         _ transform: @escaping (Element) async throws -> T
    :
378 |
379 |             var res = [(offset: Int, value: T)]()
380 |             while let next = try await group.next() {
    |                                              `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
381 |                 res.append(next)
382 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:43:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 41 |         await withTaskGroup(of: Void.self) { group in
 42 |             for element in self {
 43 |                 group.addTask(priority: priority) {
    |                                                   `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 44 |                     await operation(element)
    |                           `- note: closure captures 'operation' which is accessible to code in the current task
 45 |                 }
 46 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:69:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 67 |         try await withThrowingTaskGroup(of: Void.self) { group in
 68 |             for element in self {
 69 |                 group.addTask(priority: priority) {
    |                                                   `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 70 |                     try await operation(element)
    |                               `- note: closure captures 'operation' which is accessible to code in the current task
 71 |                 }
 72 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:126:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
124 |         return await withTaskGroup(of: (offset: Int, value: T).self) { group in
125 |             for (idx, element) in enumerated() {
126 |                 group.addTask(priority: priority) {
    |                                                   `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
127 |                     return await (idx, transform(element))
    |                                        |         `- note: closure captures non-Sendable 'element'
    |                                        `- note: closure captures non-Sendable 'transform'
128 |                 }
129 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:161:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
159 |         return try await withThrowingTaskGroup(of: (offset: Int, value: T).self) { group in
160 |             for (idx, element) in enumerated() {
161 |                 group.addTask(priority: priority) {
    |                                                   `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
162 |                     return try await (idx, transform(element))
    |                                            |         `- note: closure captures non-Sendable 'element'
    |                                            `- note: closure captures non-Sendable 'transform'
163 |                 }
164 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:229:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
227 |         return await withTaskGroup(of: (offset: Int, value: T?).self) { group in
228 |             for (idx, element) in enumerated() {
229 |                 group.addTask(priority: priority) {
    |                                                   `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
230 |                     return await (idx, transform(element))
    |                                        |         `- note: closure captures non-Sendable 'element'
    |                                        `- note: closure captures non-Sendable 'transform'
231 |                 }
232 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:268:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
266 |         return try await withThrowingTaskGroup(of: (offset: Int, value: T?).self) { group in
267 |             for (idx, element) in enumerated() {
268 |                 group.addTask(priority: priority) {
    |                                                   `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
269 |                     return try await (idx, transform(element))
    |                                            |         `- note: closure captures non-Sendable 'element'
    |                                            `- note: closure captures non-Sendable 'transform'
270 |                 }
271 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:336:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
334 |         return await withTaskGroup(of: (offset: Int, value: T).self) { group in
335 |             for (idx, element) in enumerated() {
336 |                 group.addTask(priority: priority) {
    |                                                   `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
337 |                     return await (idx, transform(element))
    |                                        |         `- note: closure captures non-Sendable 'element'
    |                                        `- note: closure captures non-Sendable 'transform'
338 |                 }
339 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CollectionConcurrencyKit.swift:374:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
372 |         return try await withThrowingTaskGroup(of: (offset: Int, value: T).self) { group in
373 |             for (idx, element) in enumerated() {
374 |                 group.addTask(priority: priority) {
    |                                                   `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
375 |                     return try await (idx, transform(element))
    |                                            |         `- note: closure captures non-Sendable 'element'
    |                                            `- note: closure captures non-Sendable 'transform'
376 |                 }
377 |             }
Build complete! (5.48s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CollectionConcurrencyKit",
  "name" : "CollectionConcurrencyKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "CollectionConcurrencyKit",
      "targets" : [
        "CollectionConcurrencyKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CollectionConcurrencyKitTests",
      "module_type" : "SwiftTarget",
      "name" : "CollectionConcurrencyKitTests",
      "path" : "Tests",
      "sources" : [
        "CompactMapTests.swift",
        "FlatMapTests.swift",
        "ForEachTests.swift",
        "MapTests.swift",
        "TestCase.swift",
        "TimingTests.swift"
      ],
      "target_dependencies" : [
        "CollectionConcurrencyKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CollectionConcurrencyKit",
      "module_type" : "SwiftTarget",
      "name" : "CollectionConcurrencyKit",
      "path" : "Sources",
      "product_memberships" : [
        "CollectionConcurrencyKit"
      ],
      "sources" : [
        "CollectionConcurrencyKit.swift",
        "DictionarySupport.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.