Build Information
Successful build of Chord, reference main (fd232f
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 15:44:25 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
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OperatorFoundation/Chord.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/OperatorFoundation/Chord
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at fd232f4 A wild new take on async queues
Cloned https://github.com/OperatorFoundation/Chord.git
Revision (git rev-parse @):
fd232f43fe53b509c340a8a50699ef1a9423e820
SUCCESS checkout https://github.com/OperatorFoundation/Chord.git at main
Fetching https://github.com/OperatorFoundation/Datable
[1/399] Fetching datable
Fetched https://github.com/OperatorFoundation/Datable from cache (1.03s)
Fetching https://github.com/OperatorFoundation/SwiftQueue
[1/70] Fetching swiftqueue
Fetched https://github.com/OperatorFoundation/SwiftQueue from cache (1.72s)
Creating working copy for https://github.com/OperatorFoundation/SwiftQueue
Working copy of https://github.com/OperatorFoundation/SwiftQueue resolved at main (3d099bc)
Creating working copy for https://github.com/OperatorFoundation/Datable
Working copy of https://github.com/OperatorFoundation/Datable resolved at main (1186348)
========================================
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": "chord",
"name": "Chord",
"url": "https://github.com/OperatorFoundation/Chord.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Chord",
"dependencies": [
{
"identity": "swiftqueue",
"name": "SwiftQueue",
"url": "https://github.com/OperatorFoundation/SwiftQueue",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftQueue",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/OperatorFoundation/Chord.git
[1/504] Fetching chord
Fetched https://github.com/OperatorFoundation/Chord.git from cache (0.88s)
Fetching https://github.com/OperatorFoundation/SwiftQueue from cache
Fetched https://github.com/OperatorFoundation/SwiftQueue from cache (1.02s)
Creating working copy for https://github.com/OperatorFoundation/SwiftQueue
Working copy of https://github.com/OperatorFoundation/SwiftQueue resolved at main (3d099bc)
Creating working copy for https://github.com/OperatorFoundation/Chord.git
Working copy of https://github.com/OperatorFoundation/Chord.git resolved at main (fd232f4)
warning: '.resolve-product-dependencies': dependency 'chord' is not used by any target
Found 1 product dependencies
- SwiftQueue
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/OperatorFoundation/Chord.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/6] Compiling SwiftQueue Queue.swift
[5/6] Compiling SwiftQueue LinkedList.swift
[6/6] Emitting module SwiftQueue
[7/26] Emitting module Chord
[8/28] Compiling Chord BlockingQueue.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Chord.swift:19:13: warning: capture of 'function' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | self.queue.async
18 | {
19 | function()
| |- warning: capture of 'function' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
20 |
21 | self.counter.decrement()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Chord.swift:21:13: warning: capture of 'self' with non-sendable type 'Chord' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public class Chord
| `- note: class 'Chord' does not conform to the 'Sendable' protocol
4 | {
5 | var queue: DispatchQueue
:
19 | function()
20 |
21 | self.counter.decrement()
| `- warning: capture of 'self' with non-sendable type 'Chord' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | }
23 | }
[9/28] Compiling Chord Chord.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Chord.swift:19:13: warning: capture of 'function' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | self.queue.async
18 | {
19 | function()
| |- warning: capture of 'function' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
20 |
21 | self.counter.decrement()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Chord.swift:21:13: warning: capture of 'self' with non-sendable type 'Chord' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public class Chord
| `- note: class 'Chord' does not conform to the 'Sendable' protocol
4 | {
5 | var queue: DispatchQueue
:
19 | function()
20 |
21 | self.counter.decrement()
| `- warning: capture of 'self' with non-sendable type 'Chord' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | }
23 | }
[10/28] Compiling Chord MultiQueue.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Promise.swift:30:44: warning: capture of 'function' with non-sendable type '() async throws -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | do
29 | {
30 | let output = try await function()
| |- warning: capture of 'function' with non-sendable type '() async throws -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
31 | self.value = .success(output)
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Promise.swift:31:21: warning: capture of 'self' with non-sendable type 'Promise<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Promise<T>
| `- note: generic class 'Promise' does not conform to the 'Sendable' protocol
18 | {
19 | let queue: DispatchQueue = DispatchQueue(label: "Promise")
:
29 | {
30 | let output = try await function()
31 | self.value = .success(output)
| `- warning: capture of 'self' with non-sendable type 'Promise<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | }
33 | catch
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Promise.swift:30:44: warning: capture of 'function' with non-sendable type '() async throws -> T' in an isolated closure; this is an error in the Swift 6 language mode
28 | do
29 | {
30 | let output = try await function()
| |- warning: capture of 'function' with non-sendable type '() async throws -> T' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
31 | self.value = .success(output)
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Promise.swift:31:21: warning: capture of 'self' with non-sendable type 'Promise<T>' in an isolated closure; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Promise<T>
| `- note: generic class 'Promise' does not conform to the 'Sendable' protocol
18 | {
19 | let queue: DispatchQueue = DispatchQueue(label: "Promise")
:
29 | {
30 | let output = try await function()
31 | self.value = .success(output)
| `- warning: capture of 'self' with non-sendable type 'Promise<T>' in an isolated closure; this is an error in the Swift 6 language mode
32 | }
33 | catch
/Users/admin/builder/spi-builder-workspace/Sources/Chord/MultiQueue.swift:48:9: 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
46 |
47 | Task
48 | {
| `- 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
49 | self.readLoop()
| `- note: closure captures 'self' which is accessible to code in the current task
50 | }
51 | }
[11/28] Compiling Chord Promise.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Promise.swift:30:44: warning: capture of 'function' with non-sendable type '() async throws -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | do
29 | {
30 | let output = try await function()
| |- warning: capture of 'function' with non-sendable type '() async throws -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
31 | self.value = .success(output)
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Promise.swift:31:21: warning: capture of 'self' with non-sendable type 'Promise<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Promise<T>
| `- note: generic class 'Promise' does not conform to the 'Sendable' protocol
18 | {
19 | let queue: DispatchQueue = DispatchQueue(label: "Promise")
:
29 | {
30 | let output = try await function()
31 | self.value = .success(output)
| `- warning: capture of 'self' with non-sendable type 'Promise<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | }
33 | catch
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Promise.swift:30:44: warning: capture of 'function' with non-sendable type '() async throws -> T' in an isolated closure; this is an error in the Swift 6 language mode
28 | do
29 | {
30 | let output = try await function()
| |- warning: capture of 'function' with non-sendable type '() async throws -> T' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
31 | self.value = .success(output)
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Promise.swift:31:21: warning: capture of 'self' with non-sendable type 'Promise<T>' in an isolated closure; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Promise<T>
| `- note: generic class 'Promise' does not conform to the 'Sendable' protocol
18 | {
19 | let queue: DispatchQueue = DispatchQueue(label: "Promise")
:
29 | {
30 | let output = try await function()
31 | self.value = .success(output)
| `- warning: capture of 'self' with non-sendable type 'Promise<T>' in an isolated closure; this is an error in the Swift 6 language mode
32 | }
33 | catch
/Users/admin/builder/spi-builder-workspace/Sources/Chord/MultiQueue.swift:48:9: 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
46 |
47 | Task
48 | {
| `- 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
49 | self.readLoop()
| `- note: closure captures 'self' which is accessible to code in the current task
50 | }
51 | }
[12/28] Compiling Chord RepeatingTask.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chord/RepeatingTask.swift:38:31: warning: capture of 'self' with non-sendable type 'RepeatingTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class RepeatingTask
| `- note: class 'RepeatingTask' does not conform to the 'Sendable' protocol
11 | {
12 | let queue = DispatchQueue(label: "RepeatingTaskQueue")
:
36 | queue.async
37 | {
38 | let goAgain = self.task()
| `- warning: capture of 'self' with non-sendable type 'RepeatingTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 |
40 | // Always lock before interacting with keepRunning
/Users/admin/builder/spi-builder-workspace/Sources/Chord/RepeatingTask.swift:42:17: warning: mutation of captured var 'keepRunning' in concurrently-executing code; this is an error in the Swift 6 language mode
40 | // Always lock before interacting with keepRunning
41 | self.cancelLock.enter()
42 | keepRunning = self.notCancelled
| `- warning: mutation of captured var 'keepRunning' in concurrently-executing code; this is an error in the Swift 6 language mode
43 | self.cancelLock.leave()
44 |
/Users/admin/builder/spi-builder-workspace/Sources/Chord/RepeatingTask.swift:45:31: warning: reference to captured var 'keepRunning' in concurrently-executing code; this is an error in the Swift 6 language mode
43 | self.cancelLock.leave()
44 |
45 | if goAgain && keepRunning
| `- warning: reference to captured var 'keepRunning' in concurrently-executing code; this is an error in the Swift 6 language mode
46 | {
47 | self.run()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/SleepingTimer.swift:38:9: 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
36 | {
37 | Task
38 | {
| `- 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 | if self.repeats
| `- note: closure captures 'self' which is accessible to code in the current task
40 | {
41 | while self.valid
[13/28] Compiling Chord SleepingTimer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chord/RepeatingTask.swift:38:31: warning: capture of 'self' with non-sendable type 'RepeatingTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class RepeatingTask
| `- note: class 'RepeatingTask' does not conform to the 'Sendable' protocol
11 | {
12 | let queue = DispatchQueue(label: "RepeatingTaskQueue")
:
36 | queue.async
37 | {
38 | let goAgain = self.task()
| `- warning: capture of 'self' with non-sendable type 'RepeatingTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 |
40 | // Always lock before interacting with keepRunning
/Users/admin/builder/spi-builder-workspace/Sources/Chord/RepeatingTask.swift:42:17: warning: mutation of captured var 'keepRunning' in concurrently-executing code; this is an error in the Swift 6 language mode
40 | // Always lock before interacting with keepRunning
41 | self.cancelLock.enter()
42 | keepRunning = self.notCancelled
| `- warning: mutation of captured var 'keepRunning' in concurrently-executing code; this is an error in the Swift 6 language mode
43 | self.cancelLock.leave()
44 |
/Users/admin/builder/spi-builder-workspace/Sources/Chord/RepeatingTask.swift:45:31: warning: reference to captured var 'keepRunning' in concurrently-executing code; this is an error in the Swift 6 language mode
43 | self.cancelLock.leave()
44 |
45 | if goAgain && keepRunning
| `- warning: reference to captured var 'keepRunning' in concurrently-executing code; this is an error in the Swift 6 language mode
46 | {
47 | self.run()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/SleepingTimer.swift:38:9: 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
36 | {
37 | Task
38 | {
| `- 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 | if self.repeats
| `- note: closure captures 'self' which is accessible to code in the current task
40 | {
41 | while self.valid
[14/28] Compiling Chord AsyncTimer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:18:29: warning: capture of 'function' with non-sendable type '() -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | queue.async
17 | {
18 | let result: T = function()
| |- warning: capture of 'function' with non-sendable type '() -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
19 | callback(result)
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:19:13: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | {
18 | let result: T = function()
19 | callback(result)
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
20 | }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:31:21: warning: capture of 'function' with non-sendable type '() throws -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | do
30 | {
31 | try function()
| |- warning: capture of 'function' with non-sendable type '() throws -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
32 | callback(nil)
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:32:17: warning: capture of 'callback' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 | {
31 | try function()
32 | callback(nil)
| |- warning: capture of 'callback' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
33 | }
34 | catch
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:50:17: warning: capture of 'blockingCall' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | DispatchQueue.global(qos: .userInitiated).async
49 | {
50 | blockingCall()
| |- warning: capture of 'blockingCall' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | completion()
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:51:17: warning: capture of 'completion' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | {
50 | blockingCall()
51 | completion()
| |- warning: capture of 'completion' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:74:25: warning: capture of 'blockingCall' with non-sendable type '() throws -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | do
73 | {
74 | try blockingCall()
| |- warning: capture of 'blockingCall' with non-sendable type '() throws -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
75 | completion(nil)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:75:21: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | {
74 | try blockingCall()
75 | completion(nil)
| |- warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
76 | }
77 | catch
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:110:33: warning: capture of 'blockingCall' with non-sendable type '() -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | DispatchQueue.global(qos: .userInitiated).async
109 | {
110 | let result: T = blockingCall()
| |- warning: capture of 'blockingCall' with non-sendable type '() -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
111 | completion(result)
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:111:17: warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | {
110 | let result: T = blockingCall()
111 | completion(result)
| |- warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:136:38: warning: capture of 'blockingCall' with non-sendable type '() throws -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
134 | do
135 | {
136 | let result = try blockingCall()
| |- warning: capture of 'blockingCall' with non-sendable type '() throws -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
137 | completion(Result.success(result))
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:137:21: warning: capture of 'completion' with non-sendable type '(Result<T, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 | {
136 | let result = try blockingCall()
137 | completion(Result.success(result))
| |- warning: capture of 'completion' with non-sendable type '(Result<T, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
138 | }
139 | catch
/Users/admin/builder/spi-builder-workspace/Sources/Chord/AsyncTimer.swift:34:9: 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
32 |
33 | Task
34 | {
| `- 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
35 | await self.handleTimer()
| `- note: closure captures 'self' which is accessible to code in the current task
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:123:30: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
121 | result in
122 |
123 | continuation.resume(returning: result)
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
124 | }
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:157:38: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
155 | {
156 | case .success(let value):
157 | continuation.resume(returning: value)
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
158 |
159 | case .failure(let error):
[15/28] Compiling Chord Asynchronizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:18:29: warning: capture of 'function' with non-sendable type '() -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | queue.async
17 | {
18 | let result: T = function()
| |- warning: capture of 'function' with non-sendable type '() -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
19 | callback(result)
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:19:13: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | {
18 | let result: T = function()
19 | callback(result)
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
20 | }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:31:21: warning: capture of 'function' with non-sendable type '() throws -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | do
30 | {
31 | try function()
| |- warning: capture of 'function' with non-sendable type '() throws -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
32 | callback(nil)
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:32:17: warning: capture of 'callback' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 | {
31 | try function()
32 | callback(nil)
| |- warning: capture of 'callback' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
33 | }
34 | catch
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:50:17: warning: capture of 'blockingCall' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | DispatchQueue.global(qos: .userInitiated).async
49 | {
50 | blockingCall()
| |- warning: capture of 'blockingCall' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | completion()
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:51:17: warning: capture of 'completion' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | {
50 | blockingCall()
51 | completion()
| |- warning: capture of 'completion' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:74:25: warning: capture of 'blockingCall' with non-sendable type '() throws -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | do
73 | {
74 | try blockingCall()
| |- warning: capture of 'blockingCall' with non-sendable type '() throws -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
75 | completion(nil)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:75:21: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | {
74 | try blockingCall()
75 | completion(nil)
| |- warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
76 | }
77 | catch
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:110:33: warning: capture of 'blockingCall' with non-sendable type '() -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | DispatchQueue.global(qos: .userInitiated).async
109 | {
110 | let result: T = blockingCall()
| |- warning: capture of 'blockingCall' with non-sendable type '() -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
111 | completion(result)
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:111:17: warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | {
110 | let result: T = blockingCall()
111 | completion(result)
| |- warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:136:38: warning: capture of 'blockingCall' with non-sendable type '() throws -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
134 | do
135 | {
136 | let result = try blockingCall()
| |- warning: capture of 'blockingCall' with non-sendable type '() throws -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
137 | completion(Result.success(result))
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:137:21: warning: capture of 'completion' with non-sendable type '(Result<T, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 | {
136 | let result = try blockingCall()
137 | completion(Result.success(result))
| |- warning: capture of 'completion' with non-sendable type '(Result<T, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
138 | }
139 | catch
/Users/admin/builder/spi-builder-workspace/Sources/Chord/AsyncTimer.swift:34:9: 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
32 |
33 | Task
34 | {
| `- 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
35 | await self.handleTimer()
| `- note: closure captures 'self' which is accessible to code in the current task
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:123:30: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
121 | result in
122 |
123 | continuation.resume(returning: result)
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
124 | }
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Asynchronizer.swift:157:38: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
155 | {
156 | case .success(let value):
157 | continuation.resume(returning: value)
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
158 |
159 | case .failure(let error):
[16/28] Compiling Chord ThreadSafeSet.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:21:13: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | }
18 |
19 | public func wait<T>(_ function: @escaping () async throws -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
20 | {
21 | let worker: Task<T, Error> = Task
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | {
23 | return try await function()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:21:38: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | }
18 |
19 | public func wait<T>(_ function: @escaping () async throws -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
20 | {
21 | let worker: Task<T, Error> = Task
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | {
23 | return try await function()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:21:38: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | }
18 |
19 | public func wait<T>(_ function: @escaping () async throws -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
20 | {
21 | let worker: Task<T, Error> = Task
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | {
23 | return try await function()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:29:20: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | }
18 |
19 | public func wait<T>(_ function: @escaping () async throws -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
20 | {
21 | let worker: Task<T, Error> = Task
:
27 | {
28 | try await Task.sleep(for: self.timeout)
29 | worker.cancel()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:32:33: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | }
18 |
19 | public func wait<T>(_ function: @escaping () async throws -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
20 | {
21 | let worker: Task<T, Error> = Task
:
30 | }
31 |
32 | return try await worker.value
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:37:13: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func wait<T>(_ function: @escaping () async -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
36 | {
37 | let worker: Task<T, Error> = Task
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
38 | {
39 | return await function()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:37:38: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func wait<T>(_ function: @escaping () async -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
36 | {
37 | let worker: Task<T, Error> = Task
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
38 | {
39 | return await function()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:37:38: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func wait<T>(_ function: @escaping () async -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
36 | {
37 | let worker: Task<T, Error> = Task
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
38 | {
39 | return await function()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:45:20: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func wait<T>(_ function: @escaping () async -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
36 | {
37 | let worker: Task<T, Error> = Task
:
43 | {
44 | try await Task.sleep(for: self.timeout)
45 | worker.cancel()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:48:33: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func wait<T>(_ function: @escaping () async -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
36 | {
37 | let worker: Task<T, Error> = Task
:
46 | }
47 |
48 | return try await worker.value
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
49 | }
50 |
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:22:9: 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
20 | {
21 | let worker: Task<T, Error> = Task
22 | {
| `- 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
23 | return try await function()
| `- note: closure captures 'function' which is accessible to code in the current task
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:27:9: 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 |
26 | let _ = Task
27 | {
| `- 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
28 | try await Task.sleep(for: self.timeout)
| `- note: closure captures 'self' which is accessible to code in the current task
29 | worker.cancel()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:38:9: 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
36 | {
37 | let worker: Task<T, Error> = Task
38 | {
| `- 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 await function()
| `- note: closure captures 'function' which is accessible to code in the current task
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:43:9: 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 |
42 | let _ = Task
43 | {
| `- 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 | try await Task.sleep(for: self.timeout)
| `- note: closure captures 'self' which is accessible to code in the current task
45 | worker.cancel()
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:65:9: 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
63 | {
64 | let worker: Task<(), Error> = Task
65 | {
| `- 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
66 | try await function()
| `- note: closure captures 'function' which is accessible to code in the current task
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:70:9: 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
68 |
69 | let _ = Task
70 | {
| `- 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
71 | try await Task.sleep(for: self.timeout)
| `- note: closure captures 'self' which is accessible to code in the current task
72 | worker.cancel()
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:81:9: 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
79 | {
80 | let worker: Task<(), Error> = Task
81 | {
| `- 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
82 | await function()
| `- note: closure captures 'function' which is accessible to code in the current task
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:86:9: 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
84 |
85 | let _ = Task
86 | {
| `- 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
87 | try await Task.sleep(for: self.timeout)
| `- note: closure captures 'self' which is accessible to code in the current task
88 | worker.cancel()
89 | }
[17/28] Compiling Chord Timeout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:21:13: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | }
18 |
19 | public func wait<T>(_ function: @escaping () async throws -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
20 | {
21 | let worker: Task<T, Error> = Task
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | {
23 | return try await function()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:21:38: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | }
18 |
19 | public func wait<T>(_ function: @escaping () async throws -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
20 | {
21 | let worker: Task<T, Error> = Task
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | {
23 | return try await function()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:21:38: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | }
18 |
19 | public func wait<T>(_ function: @escaping () async throws -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
20 | {
21 | let worker: Task<T, Error> = Task
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | {
23 | return try await function()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:29:20: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | }
18 |
19 | public func wait<T>(_ function: @escaping () async throws -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
20 | {
21 | let worker: Task<T, Error> = Task
:
27 | {
28 | try await Task.sleep(for: self.timeout)
29 | worker.cancel()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:32:33: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | }
18 |
19 | public func wait<T>(_ function: @escaping () async throws -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
20 | {
21 | let worker: Task<T, Error> = Task
:
30 | }
31 |
32 | return try await worker.value
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:37:13: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func wait<T>(_ function: @escaping () async -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
36 | {
37 | let worker: Task<T, Error> = Task
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
38 | {
39 | return await function()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:37:38: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func wait<T>(_ function: @escaping () async -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
36 | {
37 | let worker: Task<T, Error> = Task
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
38 | {
39 | return await function()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:37:38: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func wait<T>(_ function: @escaping () async -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
36 | {
37 | let worker: Task<T, Error> = Task
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
38 | {
39 | return await function()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:45:20: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func wait<T>(_ function: @escaping () async -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
36 | {
37 | let worker: Task<T, Error> = Task
:
43 | {
44 | try await Task.sleep(for: self.timeout)
45 | worker.cancel()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:48:33: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func wait<T>(_ function: @escaping () async -> T) async throws -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
36 | {
37 | let worker: Task<T, Error> = Task
:
46 | }
47 |
48 | return try await worker.value
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
49 | }
50 |
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:22:9: 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
20 | {
21 | let worker: Task<T, Error> = Task
22 | {
| `- 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
23 | return try await function()
| `- note: closure captures 'function' which is accessible to code in the current task
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:27:9: 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 |
26 | let _ = Task
27 | {
| `- 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
28 | try await Task.sleep(for: self.timeout)
| `- note: closure captures 'self' which is accessible to code in the current task
29 | worker.cancel()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:38:9: 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
36 | {
37 | let worker: Task<T, Error> = Task
38 | {
| `- 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 await function()
| `- note: closure captures 'function' which is accessible to code in the current task
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:43:9: 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 |
42 | let _ = Task
43 | {
| `- 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 | try await Task.sleep(for: self.timeout)
| `- note: closure captures 'self' which is accessible to code in the current task
45 | worker.cancel()
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:65:9: 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
63 | {
64 | let worker: Task<(), Error> = Task
65 | {
| `- 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
66 | try await function()
| `- note: closure captures 'function' which is accessible to code in the current task
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:70:9: 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
68 |
69 | let _ = Task
70 | {
| `- 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
71 | try await Task.sleep(for: self.timeout)
| `- note: closure captures 'self' which is accessible to code in the current task
72 | worker.cancel()
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:81:9: 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
79 | {
80 | let worker: Task<(), Error> = Task
81 | {
| `- 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
82 | await function()
| `- note: closure captures 'function' which is accessible to code in the current task
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Timeout.swift:86:9: 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
84 |
85 | let _ = Task
86 | {
| `- 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
87 | try await Task.sleep(for: self.timeout)
| `- note: closure captures 'self' which is accessible to code in the current task
88 | worker.cancel()
89 | }
[18/28] Compiling Chord InvertedLockedCounter.swift
[19/28] Compiling Chord LockedCounter.swift
[20/28] Compiling Chord Collector.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Collector.swift:43:13: warning: capture of 'self' with non-sendable type 'Collector<O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class Collector<O>
| `- note: generic class 'Collector' does not conform to the 'Sendable' protocol
11 | {
12 | let queue = DispatchQueue(label: "Collector")
:
41 | queue.async
42 | {
43 | self.lock.enter()
| `- warning: capture of 'self' with non-sendable type 'Collector<O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | self.taskCount += 1
45 | self.lock.leave()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Collector.swift:47:26: warning: capture of 'task' with non-sendable type '() -> O' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | self.lock.leave()
46 |
47 | let output = task()
| |- warning: capture of 'task' with non-sendable type '() -> O' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
48 |
49 | self.lock.enter()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Collector.swift:60:13: warning: capture of 'self' with non-sendable type 'Collector<O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class Collector<O>
| `- note: generic class 'Collector' does not conform to the 'Sendable' protocol
11 | {
12 | let queue = DispatchQueue(label: "Collector")
:
58 | queue.async
59 | {
60 | self.lock.enter()
| `- warning: capture of 'self' with non-sendable type 'Collector<O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | self.taskCount += 1
62 | self.lock.leave()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Collector.swift:64:31: warning: capture of 'task' with non-sendable type '() -> O?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | self.lock.leave()
63 |
64 | let maybeOutput = task()
| |- warning: capture of 'task' with non-sendable type '() -> O?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 |
66 | self.lock.enter()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/ConcurrencyTester.swift:39:9: 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
37 | {
38 | Task
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
40 | try await Task.sleep(for: Duration.seconds(1))
41 | self.lock.signal()
| `- note: closure captures 'self' which is accessible to code in the current task
42 | }
43 |
[21/28] Compiling Chord ConcurrencyTester.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Collector.swift:43:13: warning: capture of 'self' with non-sendable type 'Collector<O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class Collector<O>
| `- note: generic class 'Collector' does not conform to the 'Sendable' protocol
11 | {
12 | let queue = DispatchQueue(label: "Collector")
:
41 | queue.async
42 | {
43 | self.lock.enter()
| `- warning: capture of 'self' with non-sendable type 'Collector<O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | self.taskCount += 1
45 | self.lock.leave()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Collector.swift:47:26: warning: capture of 'task' with non-sendable type '() -> O' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | self.lock.leave()
46 |
47 | let output = task()
| |- warning: capture of 'task' with non-sendable type '() -> O' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
48 |
49 | self.lock.enter()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Collector.swift:60:13: warning: capture of 'self' with non-sendable type 'Collector<O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class Collector<O>
| `- note: generic class 'Collector' does not conform to the 'Sendable' protocol
11 | {
12 | let queue = DispatchQueue(label: "Collector")
:
58 | queue.async
59 | {
60 | self.lock.enter()
| `- warning: capture of 'self' with non-sendable type 'Collector<O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | self.taskCount += 1
62 | self.lock.leave()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Collector.swift:64:31: warning: capture of 'task' with non-sendable type '() -> O?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | self.lock.leave()
63 |
64 | let maybeOutput = task()
| |- warning: capture of 'task' with non-sendable type '() -> O?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 |
66 | self.lock.enter()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/ConcurrencyTester.swift:39:9: 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
37 | {
38 | Task
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
40 | try await Task.sleep(for: Duration.seconds(1))
41 | self.lock.signal()
| `- note: closure captures 'self' which is accessible to code in the current task
42 | }
43 |
[22/28] Compiling Chord Data+async.swift
[23/28] Compiling Chord FilteredQueue.swift
[24/28] Compiling Chord AsyncBufferingQueue.swift
[25/28] Compiling Chord AsyncLock.swift
[26/28] Compiling Chord AsyncQueue.swift
[27/28] Compiling Chord Synchronizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:105:13: warning: capture of 'function' with non-sendable type 'Caller<T>' (aka '(@escaping (T) -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | lock.enter()
104 | DispatchQueue.main.async {
105 | function
| |- warning: capture of 'function' with non-sendable type 'Caller<T>' (aka '(@escaping (T) -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
106 | {
107 | result = $0
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:107:17: warning: capture of 'result' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | public class MainThreadSynchronizer
96 | {
97 | static public func sync<T>(_ function: @escaping Caller<T>) -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
98 | {
99 | let lock = DispatchGroup()
:
105 | function
106 | {
107 | result = $0
| `- warning: capture of 'result' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | lock.leave()
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:107:17: warning: capture of 'result' with non-sendable type 'T?' in an isolated closure; this is an error in the Swift 6 language mode
95 | public class MainThreadSynchronizer
96 | {
97 | static public func sync<T>(_ function: @escaping Caller<T>) -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
98 | {
99 | let lock = DispatchGroup()
:
105 | function
106 | {
107 | result = $0
| `- warning: capture of 'result' with non-sendable type 'T?' in an isolated closure; this is an error in the Swift 6 language mode
108 | lock.leave()
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:107:17: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
105 | function
106 | {
107 | result = $0
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
108 | lock.leave()
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:127:13: warning: capture of 'function' with non-sendable type 'Caller0' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | DispatchQueue.main.async
126 | {
127 | function
| |- warning: capture of 'function' with non-sendable type 'Caller0' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
128 | {
129 | lock.leave()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:151:17: warning: capture of 'function' with non-sendable type 'Callback0' (aka '() -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | DispatchQueue.main.async
150 | {
151 | function()
| |- warning: capture of 'function' with non-sendable type 'Callback0' (aka '() -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
152 | lock.signal()
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/ThreadSafeDictionary.swift:42:17: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class ThreadSafeDictionary<V: Hashable,T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
11 |
12 | private var dictionary: [V: T]
:
40 | set(newValue) {
41 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
42 | self?.dictionary[key] = newValue
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/ThreadSafeDictionary.swift:42:34: warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class ThreadSafeDictionary<V: Hashable,T>: Collection {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
11 |
12 | private var dictionary: [V: T]
:
40 | set(newValue) {
41 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
42 | self?.dictionary[key] = newValue
| `- warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/ThreadSafeDictionary.swift:42:41: warning: capture of 'newValue' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class ThreadSafeDictionary<V: Hashable,T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 |
12 | private var dictionary: [V: T]
:
40 | set(newValue) {
41 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
42 | self?.dictionary[key] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/ThreadSafeDictionary.swift:61:13: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class ThreadSafeDictionary<V: Hashable,T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
11 |
12 | private var dictionary: [V: T]
:
59 | public func removeValue(forKey key: V) {
60 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
61 | self?.dictionary.removeValue(forKey: key)
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/ThreadSafeDictionary.swift:61:50: warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class ThreadSafeDictionary<V: Hashable,T>: Collection {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
11 |
12 | private var dictionary: [V: T]
:
59 | public func removeValue(forKey key: V) {
60 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
61 | self?.dictionary.removeValue(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/ThreadSafeDictionary.swift:67:13: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class ThreadSafeDictionary<V: Hashable,T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
11 |
12 | private var dictionary: [V: T]
:
65 | public func removeAll() {
66 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
67 | self?.dictionary.removeAll()
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:105:13: warning: sending 'function' risks causing data races; this is an error in the Swift 6 language mode
103 | lock.enter()
104 | DispatchQueue.main.async {
105 | function
| |- warning: sending 'function' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'function' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
106 | {
107 | result = $0
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:107:17: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
105 | function
106 | {
107 | result = $0
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'result' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
108 | lock.leave()
109 | }
:
112 | lock.wait()
113 |
114 | return result!
| `- note: access can happen concurrently
115 | }
116 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:127:13: warning: sending 'function' risks causing data races; this is an error in the Swift 6 language mode
125 | DispatchQueue.main.async
126 | {
127 | function
| |- warning: sending 'function' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'function' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
128 | {
129 | lock.leave()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:151:17: warning: sending 'function' risks causing data races; this is an error in the Swift 6 language mode
149 | DispatchQueue.main.async
150 | {
151 | function()
| |- warning: sending 'function' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'function' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
152 | lock.signal()
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:182:9: 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
180 |
181 | Task
182 | {
| `- 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
183 | self.result = await function()
| `- note: closure captures 'self' which is accessible to code in the current task
184 | lock.signal()
185 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:214:9: 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
212 |
213 | Task
214 | {
| `- 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
215 | do
216 | {
217 | let result = try await function()
| `- note: closure captures 'self' which is accessible to code in the current task
218 | queue.enqueue(element: Result.success(result))
219 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:260:9: 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
258 |
259 | Task
260 | {
| `- 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
261 | await function()
| `- note: closure captures 'self' which is accessible to code in the current task
262 |
263 | lock.signal()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:291:9: 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
289 |
290 | Task
291 | {
| `- 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
292 | do
293 | {
294 | try await function()
| `- note: closure captures 'self' which is accessible to code in the current task
295 | }
296 | catch
[28/28] Compiling Chord ThreadSafeDictionary.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:105:13: warning: capture of 'function' with non-sendable type 'Caller<T>' (aka '(@escaping (T) -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | lock.enter()
104 | DispatchQueue.main.async {
105 | function
| |- warning: capture of 'function' with non-sendable type 'Caller<T>' (aka '(@escaping (T) -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
106 | {
107 | result = $0
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:107:17: warning: capture of 'result' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | public class MainThreadSynchronizer
96 | {
97 | static public func sync<T>(_ function: @escaping Caller<T>) -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
98 | {
99 | let lock = DispatchGroup()
:
105 | function
106 | {
107 | result = $0
| `- warning: capture of 'result' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | lock.leave()
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:107:17: warning: capture of 'result' with non-sendable type 'T?' in an isolated closure; this is an error in the Swift 6 language mode
95 | public class MainThreadSynchronizer
96 | {
97 | static public func sync<T>(_ function: @escaping Caller<T>) -> T
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
98 | {
99 | let lock = DispatchGroup()
:
105 | function
106 | {
107 | result = $0
| `- warning: capture of 'result' with non-sendable type 'T?' in an isolated closure; this is an error in the Swift 6 language mode
108 | lock.leave()
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:107:17: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
105 | function
106 | {
107 | result = $0
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
108 | lock.leave()
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:127:13: warning: capture of 'function' with non-sendable type 'Caller0' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | DispatchQueue.main.async
126 | {
127 | function
| |- warning: capture of 'function' with non-sendable type 'Caller0' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
128 | {
129 | lock.leave()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:151:17: warning: capture of 'function' with non-sendable type 'Callback0' (aka '() -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | DispatchQueue.main.async
150 | {
151 | function()
| |- warning: capture of 'function' with non-sendable type 'Callback0' (aka '() -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
152 | lock.signal()
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/ThreadSafeDictionary.swift:42:17: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class ThreadSafeDictionary<V: Hashable,T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
11 |
12 | private var dictionary: [V: T]
:
40 | set(newValue) {
41 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
42 | self?.dictionary[key] = newValue
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/ThreadSafeDictionary.swift:42:34: warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class ThreadSafeDictionary<V: Hashable,T>: Collection {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
11 |
12 | private var dictionary: [V: T]
:
40 | set(newValue) {
41 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
42 | self?.dictionary[key] = newValue
| `- warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/ThreadSafeDictionary.swift:42:41: warning: capture of 'newValue' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class ThreadSafeDictionary<V: Hashable,T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 |
12 | private var dictionary: [V: T]
:
40 | set(newValue) {
41 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
42 | self?.dictionary[key] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/ThreadSafeDictionary.swift:61:13: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class ThreadSafeDictionary<V: Hashable,T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
11 |
12 | private var dictionary: [V: T]
:
59 | public func removeValue(forKey key: V) {
60 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
61 | self?.dictionary.removeValue(forKey: key)
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/ThreadSafeDictionary.swift:61:50: warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class ThreadSafeDictionary<V: Hashable,T>: Collection {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
11 |
12 | private var dictionary: [V: T]
:
59 | public func removeValue(forKey key: V) {
60 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
61 | self?.dictionary.removeValue(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/ThreadSafeDictionary.swift:67:13: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class ThreadSafeDictionary<V: Hashable,T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
11 |
12 | private var dictionary: [V: T]
:
65 | public func removeAll() {
66 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
67 | self?.dictionary.removeAll()
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:105:13: warning: sending 'function' risks causing data races; this is an error in the Swift 6 language mode
103 | lock.enter()
104 | DispatchQueue.main.async {
105 | function
| |- warning: sending 'function' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'function' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
106 | {
107 | result = $0
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:107:17: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
105 | function
106 | {
107 | result = $0
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'result' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
108 | lock.leave()
109 | }
:
112 | lock.wait()
113 |
114 | return result!
| `- note: access can happen concurrently
115 | }
116 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:127:13: warning: sending 'function' risks causing data races; this is an error in the Swift 6 language mode
125 | DispatchQueue.main.async
126 | {
127 | function
| |- warning: sending 'function' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'function' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
128 | {
129 | lock.leave()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:151:17: warning: sending 'function' risks causing data races; this is an error in the Swift 6 language mode
149 | DispatchQueue.main.async
150 | {
151 | function()
| |- warning: sending 'function' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'function' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
152 | lock.signal()
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:182:9: 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
180 |
181 | Task
182 | {
| `- 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
183 | self.result = await function()
| `- note: closure captures 'self' which is accessible to code in the current task
184 | lock.signal()
185 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:214:9: 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
212 |
213 | Task
214 | {
| `- 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
215 | do
216 | {
217 | let result = try await function()
| `- note: closure captures 'self' which is accessible to code in the current task
218 | queue.enqueue(element: Result.success(result))
219 | }
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:260:9: 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
258 |
259 | Task
260 | {
| `- 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
261 | await function()
| `- note: closure captures 'self' which is accessible to code in the current task
262 |
263 | lock.signal()
/Users/admin/builder/spi-builder-workspace/Sources/Chord/Synchronizer.swift:291:9: 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
289 |
290 | Task
291 | {
| `- 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
292 | do
293 | {
294 | try await function()
| `- note: closure captures 'self' which is accessible to code in the current task
295 | }
296 | catch
Build complete! (11.32s)
Build complete.
{
"dependencies" : [
{
"identity" : "datable",
"requirement" : {
"branch" : [
"main"
]
},
"type" : "sourceControl",
"url" : "https://github.com/OperatorFoundation/Datable"
},
{
"identity" : "swiftqueue",
"requirement" : {
"branch" : [
"main"
]
},
"type" : "sourceControl",
"url" : "https://github.com/OperatorFoundation/SwiftQueue"
}
],
"manifest_display_name" : "Chord",
"name" : "Chord",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "Chord",
"targets" : [
"Chord"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "ChordTests",
"module_type" : "SwiftTarget",
"name" : "ChordTests",
"path" : "Tests/ChordTests",
"product_dependencies" : [
"Datable"
],
"sources" : [
"ChordTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Chord"
],
"type" : "test"
},
{
"c99name" : "Chord",
"module_type" : "SwiftTarget",
"name" : "Chord",
"path" : "Sources/Chord",
"product_dependencies" : [
"SwiftQueue"
],
"product_memberships" : [
"Chord"
],
"sources" : [
"AsyncBufferingQueue.swift",
"AsyncLock.swift",
"AsyncQueue.swift",
"AsyncTimer.swift",
"Asynchronizer.swift",
"BlockingQueue.swift",
"Chord.swift",
"Collector.swift",
"ConcurrencyTester.swift",
"Data+async.swift",
"FilteredQueue.swift",
"InvertedLockedCounter.swift",
"LockedCounter.swift",
"MultiQueue.swift",
"Promise.swift",
"RepeatingTask.swift",
"SleepingTimer.swift",
"Synchronizer.swift",
"ThreadSafeDictionary.swift",
"ThreadSafeSet.swift",
"Timeout.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Done.