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 main (903a94), with Swift 6.0 for Linux on 2 Dec 2024 03:05:42 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/happn-app/CollectionConcurrencyKit.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/happn-app/CollectionConcurrencyKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/happn-app/CollectionConcurrencyKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/5] Emitting module CollectionConcurrencyKit
[4/5] Compiling CollectionConcurrencyKit DictionarySupport.swift
/host/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) {
/host/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) {
/host/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 | 				}
/host/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 | 				}
/host/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
/host/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
/host/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) {
/host/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) {
/host/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 | 				}
/host/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 | 				}
/host/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
/host/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
/host/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) {
/host/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) {
/host/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 | 				}
/host/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 | 				}
/host/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 {
/host/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 {
/host/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) {
/host/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 | 				}
/host/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))
/host/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 | 			}
/host/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 | 			}
/host/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 | 			}
/host/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 | 			}
[5/5] Compiling CollectionConcurrencyKit CollectionConcurrencyKit.swift
/host/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) {
/host/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 |                 }
/host/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 |             }
/host/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) {
/host/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 |                 }
/host/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 |             }
/host/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) {
/host/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 |                 }
/host/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))
/host/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) {
/host/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 |                 }
/host/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))
/host/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) {
/host/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 |                 }
/host/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 |             }
/host/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) {
/host/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 |                 }
/host/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 |             }
/host/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 |             }
/host/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 |             }
/host/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 |             }
/host/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 |             }
/host/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 |             }
/host/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 |             }
/host/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 |             }
/host/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! (10.76s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CollectionConcurrencyKit",
  "name" : "CollectionConcurrencyKit",
  "path" : "/host/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"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.