The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of Chord, reference 0.1.6 (30e76f), with Swift 6.0 for Linux on 5 Nov 2024 15:36:41 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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OperatorFoundation/Chord.git
Reference: 0.1.6
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/OperatorFoundation/Chord
 * tag               0.1.6      -> FETCH_HEAD
HEAD is now at 30e76f8 Merge branch 'main' into release
Cloned https://github.com/OperatorFoundation/Chord.git
Revision (git rev-parse @):
30e76f8f89ebdf310a62790ff1369e2702d2db66
SUCCESS checkout https://github.com/OperatorFoundation/Chord.git at 0.1.6
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/OperatorFoundation/Chord.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 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
Fetching https://github.com/OperatorFoundation/SwiftQueue
Fetching https://github.com/OperatorFoundation/Datable
[1/70] Fetching swiftqueue
[71/469] Fetching swiftqueue, datable
Fetched https://github.com/OperatorFoundation/SwiftQueue from cache (0.20s)
Fetched https://github.com/OperatorFoundation/Datable from cache (0.20s)
Computing version for https://github.com/OperatorFoundation/SwiftQueue
Computed https://github.com/OperatorFoundation/SwiftQueue at 0.1.3 (0.41s)
Computing version for https://github.com/OperatorFoundation/Datable
Computed https://github.com/OperatorFoundation/Datable at 4.0.1 (0.43s)
Creating working copy for https://github.com/OperatorFoundation/Datable
Working copy of https://github.com/OperatorFoundation/Datable resolved at 4.0.1
Creating working copy for https://github.com/OperatorFoundation/SwiftQueue
Working copy of https://github.com/OperatorFoundation/SwiftQueue resolved at 0.1.3
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/6] Compiling SwiftQueue Queue.swift
[5/6] Emitting module SwiftQueue
[6/6] Compiling SwiftQueue LinkedList.swift
[8/27] Emitting module Chord
[9/29] Compiling Chord AsyncBufferingQueue.swift
[10/29] Compiling Chord AsyncLock.swift
[11/29] Compiling Chord AsyncQueue.swift
[12/29] Compiling Chord Data+async.swift
[13/29] Compiling Chord FilteredQueue.swift
[14/29] Compiling Chord InvertedLockedCounter.swift
[15/29] Compiling Chord AsyncTimer.swift
/host/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 |         }
/host/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 |     }
/host/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 |             }
/host/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
/host/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 |             }
/host/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 |         }
/host/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 |                 }
/host/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
/host/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 |             }
/host/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 |         }
/host/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 |                 }
/host/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
/host/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 |     }
/host/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 |         }
/host/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/29] Compiling Chord Asynchronizer.swift
/host/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 |         }
/host/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 |     }
/host/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 |             }
/host/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
/host/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 |             }
/host/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 |         }
/host/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 |                 }
/host/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
/host/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 |             }
/host/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 |         }
/host/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 |                 }
/host/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
/host/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 |     }
/host/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 |         }
/host/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):
[17/29] Compiling Chord BlockingQueue.swift
/host/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 |         }
/host/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 |     }
/host/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 |             }
/host/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
/host/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 |             }
/host/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 |         }
/host/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 |                 }
/host/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
/host/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 |             }
/host/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 |         }
/host/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 |                 }
/host/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
/host/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 |     }
/host/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 |         }
/host/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):
[18/29] Compiling Chord Chord.swift
/host/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()
/host/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 |     }
/host/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()
/host/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()
/host/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()
/host/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()
/host/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 |
[19/29] Compiling Chord Collector.swift
/host/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()
/host/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 |     }
/host/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()
/host/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()
/host/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()
/host/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()
/host/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 |
[20/29] Compiling Chord ConcurrencyTester.swift
/host/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()
/host/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 |     }
/host/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()
/host/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()
/host/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()
/host/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()
/host/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/29] Compiling Chord ThreadSafeSet.swift
/host/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()
/host/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()
/host/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()
/host/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 |
/host/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 |
/host/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()
/host/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()
/host/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()
/host/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 |
/host/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 |
/host/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 |
/host/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 |         }
/host/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 |
/host/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 |         }
/host/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 |
/host/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 |         }
/host/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 |
/host/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 |         }
[22/29] Compiling Chord Timeout.swift
/host/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()
/host/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()
/host/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()
/host/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 |
/host/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 |
/host/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()
/host/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()
/host/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()
/host/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 |
/host/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 |
/host/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 |
/host/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 |         }
/host/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 |
/host/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 |         }
/host/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 |
/host/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 |         }
/host/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 |
/host/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 |         }
[23/29] Compiling Chord LockedCounter.swift
/host/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 |                 }
/host/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
/host/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 |                 }
/host/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
/host/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 |     }
[24/29] Compiling Chord MultiQueue.swift
/host/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 |                 }
/host/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
/host/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 |                 }
/host/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
/host/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 |     }
[25/29] Compiling Chord Promise.swift
/host/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 |                 }
/host/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
/host/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 |                 }
/host/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
/host/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 |     }
[26/29] Compiling Chord Synchronizer.swift
/host/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
/host/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 |             }
/host/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 |             }
/host/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 |             }
/host/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()
/host/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 |             }
/host/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 |         }
/host/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 |         }
/host/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 |         }
/host/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 |     }
/host/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 |     }
/host/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 |     }
/host/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
/host/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 | }
/host/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()
/host/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 |             }
/host/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 |         }
/host/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 |             }
/host/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()
/host/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
[27/29] Compiling Chord ThreadSafeDictionary.swift
/host/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
/host/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 |             }
/host/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 |             }
/host/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 |             }
/host/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()
/host/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 |             }
/host/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 |         }
/host/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 |         }
/host/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 |         }
/host/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 |     }
/host/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 |     }
/host/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 |     }
/host/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
/host/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 | }
/host/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()
/host/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 |             }
/host/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 |         }
/host/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 |             }
/host/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()
/host/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/29] Compiling Chord RepeatingTask.swift
/host/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
/host/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 |
/host/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()
/host/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
[29/29] Compiling Chord SleepingTimer.swift
/host/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
/host/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 |
/host/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()
/host/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
Build complete! (11.65s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "datable",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.0.1",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/OperatorFoundation/Datable"
    },
    {
      "identity" : "swiftqueue",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.3",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/OperatorFoundation/SwiftQueue"
    }
  ],
  "manifest_display_name" : "Chord",
  "name" : "Chord",
  "path" : "/host/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"
}
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.