Build Information
Successful build of Pelican with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 5
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| |- warning: capture of 'completion' with non-sendable type '(([Element]) -> 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'
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:17: warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| `- warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:227:5: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
225 |
226 | queue.async(flags: .barrier) {
227 | self.array[index] = newValue
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | }
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:227:25: warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
225 |
226 | queue.async(flags: .barrier) {
227 | self.array[index] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | }
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:258:19: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
256 | var result = false
257 |
258 | if let index = self.array.index(of: element) {
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | self.array.remove(at: index)
260 | result = true
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:258:40: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
256 | var result = false
257 |
258 | if let index = self.array.index(of: element) {
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | self.array.remove(at: index)
260 | result = true
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:5: warning: capture of 'completion' with non-sendable type '((Bool) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| |- warning: capture of 'completion' with non-sendable type '((Bool) -> 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'
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:5: warning: capture of 'completion' with non-sendable type '((Bool) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| |- warning: capture of 'completion' with non-sendable type '((Bool) -> 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'
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:17: warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| `- warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:5: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:29: warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'KeyType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:36: warning: capture of 'newValue' with non-sendable type 'ValueType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'ValueType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:116:16: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
114 | func removeValue(forKey key: KeyType, completion: ((ValueType?) -> Void)? = nil) {
115 | queue.async(flags: .barrier) {
116 | let value = self.internalDictionary.removeValue(forKey: key)
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:116:60: warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'KeyType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
114 | func removeValue(forKey key: KeyType, completion: ((ValueType?) -> Void)? = nil) {
115 | queue.async(flags: .barrier) {
116 | let value = self.internalDictionary.removeValue(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:5: warning: capture of 'completion' with non-sendable type '((ValueType?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| |- warning: capture of 'completion' with non-sendable type '((ValueType?) -> 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'
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:5: warning: capture of 'completion' with non-sendable type '((ValueType?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| |- warning: capture of 'completion' with non-sendable type '((ValueType?) -> 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'
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:17: warning: capture of 'value' with non-sendable type 'ValueType?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| `- warning: capture of 'value' with non-sendable type 'ValueType?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:128:4: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
126 | func removeAll() {
127 | queue.async(flags: .barrier) {
128 | self.internalDictionary.removeAll()
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 | }
130 | }
[158/163] Compiling Pelican UserSession.swift
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Session/Modules/Monitor/TimeoutMonitor.swift:96:3: warning: using '_' to ignore the result of a Void-returning function is redundant
94 | }
95 |
96 | _ = schedule.add(lastEvent!)
| `- warning: using '_' to ignore the result of a Void-returning function is redundant
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:136:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
134 | func append( _ element: Element) {
135 | queue.async(flags: .barrier) {
136 | self.array.append(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:136:22: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
134 | func append( _ element: Element) {
135 | queue.async(flags: .barrier) {
136 | self.array.append(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:145:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
143 | func append( _ elements: [Element]) {
144 | queue.async(flags: .barrier) {
145 | self.array += elements
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:145:18: warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
143 | func append( _ elements: [Element]) {
144 | queue.async(flags: .barrier) {
145 | self.array += elements
| `- warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:156:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
154 | func insert( _ element: Element, at index: Int) {
155 | queue.async(flags: .barrier) {
156 | self.array.insert(element, at: index)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | }
158 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:156:22: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
154 | func insert( _ element: Element, at index: Int) {
155 | queue.async(flags: .barrier) {
156 | self.array.insert(element, at: index)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | }
158 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:167:18: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
165 | func remove(at index: Int, completion: ((Element) -> Void)? = nil) {
166 | queue.async(flags: .barrier) {
167 | let element = self.array.remove(at: index)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:170:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | DispatchQueue.main.async {
170 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:170:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | DispatchQueue.main.async {
170 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:170:17: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
168 |
169 | DispatchQueue.main.async {
170 | completion?(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:182:22: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
180 | func remove(where predicate: @escaping (Element) -> Bool, completion: ((Element) -> Void)? = nil) {
181 | queue.async(flags: .barrier) {
182 | guard let index = self.array.index(where: predicate) else { return }
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | let element = self.array.remove(at: index)
184 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:182:46: warning: capture of 'predicate' with non-sendable type '(Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | func remove(where predicate: @escaping (Element) -> Bool, completion: ((Element) -> Void)? = nil) {
181 | queue.async(flags: .barrier) {
182 | guard let index = self.array.index(where: predicate) else { return }
| |- warning: capture of 'predicate' with non-sendable type '(Element) -> Bool' 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'
183 | let element = self.array.remove(at: index)
184 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:186:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 |
185 | DispatchQueue.main.async {
186 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:186:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 |
185 | DispatchQueue.main.async {
186 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:186:17: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
184 |
185 | DispatchQueue.main.async {
186 | completion?(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:196:19: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
194 | func removeAll(completion: (([Element]) -> Void)? = nil) {
195 | queue.async(flags: .barrier) {
196 | let elements = self.array
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | self.array.removeAll()
198 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:5: warning: capture of 'completion' with non-sendable type '(([Element]) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| |- warning: capture of 'completion' with non-sendable type '(([Element]) -> 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'
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:5: warning: capture of 'completion' with non-sendable type '(([Element]) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| |- warning: capture of 'completion' with non-sendable type '(([Element]) -> 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'
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:17: warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| `- warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:227:5: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
225 |
226 | queue.async(flags: .barrier) {
227 | self.array[index] = newValue
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | }
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:227:25: warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
225 |
226 | queue.async(flags: .barrier) {
227 | self.array[index] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | }
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:258:19: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
256 | var result = false
257 |
258 | if let index = self.array.index(of: element) {
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | self.array.remove(at: index)
260 | result = true
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:258:40: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
256 | var result = false
257 |
258 | if let index = self.array.index(of: element) {
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | self.array.remove(at: index)
260 | result = true
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:5: warning: capture of 'completion' with non-sendable type '((Bool) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| |- warning: capture of 'completion' with non-sendable type '((Bool) -> 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'
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:5: warning: capture of 'completion' with non-sendable type '((Bool) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| |- warning: capture of 'completion' with non-sendable type '((Bool) -> 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'
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:17: warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| `- warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:5: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:29: warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'KeyType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:36: warning: capture of 'newValue' with non-sendable type 'ValueType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'ValueType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:116:16: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
114 | func removeValue(forKey key: KeyType, completion: ((ValueType?) -> Void)? = nil) {
115 | queue.async(flags: .barrier) {
116 | let value = self.internalDictionary.removeValue(forKey: key)
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:116:60: warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'KeyType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
114 | func removeValue(forKey key: KeyType, completion: ((ValueType?) -> Void)? = nil) {
115 | queue.async(flags: .barrier) {
116 | let value = self.internalDictionary.removeValue(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:5: warning: capture of 'completion' with non-sendable type '((ValueType?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| |- warning: capture of 'completion' with non-sendable type '((ValueType?) -> 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'
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:5: warning: capture of 'completion' with non-sendable type '((ValueType?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| |- warning: capture of 'completion' with non-sendable type '((ValueType?) -> 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'
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:17: warning: capture of 'value' with non-sendable type 'ValueType?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| `- warning: capture of 'value' with non-sendable type 'ValueType?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:128:4: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
126 | func removeAll() {
127 | queue.async(flags: .barrier) {
128 | self.internalDictionary.removeAll()
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 | }
130 | }
[159/163] Compiling Pelican CasedEnum.swift
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Session/Modules/Monitor/TimeoutMonitor.swift:96:3: warning: using '_' to ignore the result of a Void-returning function is redundant
94 | }
95 |
96 | _ = schedule.add(lastEvent!)
| `- warning: using '_' to ignore the result of a Void-returning function is redundant
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:136:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
134 | func append( _ element: Element) {
135 | queue.async(flags: .barrier) {
136 | self.array.append(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:136:22: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
134 | func append( _ element: Element) {
135 | queue.async(flags: .barrier) {
136 | self.array.append(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:145:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
143 | func append( _ elements: [Element]) {
144 | queue.async(flags: .barrier) {
145 | self.array += elements
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:145:18: warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
143 | func append( _ elements: [Element]) {
144 | queue.async(flags: .barrier) {
145 | self.array += elements
| `- warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:156:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
154 | func insert( _ element: Element, at index: Int) {
155 | queue.async(flags: .barrier) {
156 | self.array.insert(element, at: index)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | }
158 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:156:22: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
154 | func insert( _ element: Element, at index: Int) {
155 | queue.async(flags: .barrier) {
156 | self.array.insert(element, at: index)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | }
158 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:167:18: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
165 | func remove(at index: Int, completion: ((Element) -> Void)? = nil) {
166 | queue.async(flags: .barrier) {
167 | let element = self.array.remove(at: index)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:170:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | DispatchQueue.main.async {
170 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:170:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | DispatchQueue.main.async {
170 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:170:17: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
168 |
169 | DispatchQueue.main.async {
170 | completion?(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:182:22: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
180 | func remove(where predicate: @escaping (Element) -> Bool, completion: ((Element) -> Void)? = nil) {
181 | queue.async(flags: .barrier) {
182 | guard let index = self.array.index(where: predicate) else { return }
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | let element = self.array.remove(at: index)
184 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:182:46: warning: capture of 'predicate' with non-sendable type '(Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | func remove(where predicate: @escaping (Element) -> Bool, completion: ((Element) -> Void)? = nil) {
181 | queue.async(flags: .barrier) {
182 | guard let index = self.array.index(where: predicate) else { return }
| |- warning: capture of 'predicate' with non-sendable type '(Element) -> Bool' 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'
183 | let element = self.array.remove(at: index)
184 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:186:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 |
185 | DispatchQueue.main.async {
186 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:186:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 |
185 | DispatchQueue.main.async {
186 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:186:17: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
184 |
185 | DispatchQueue.main.async {
186 | completion?(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:196:19: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
194 | func removeAll(completion: (([Element]) -> Void)? = nil) {
195 | queue.async(flags: .barrier) {
196 | let elements = self.array
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | self.array.removeAll()
198 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:5: warning: capture of 'completion' with non-sendable type '(([Element]) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| |- warning: capture of 'completion' with non-sendable type '(([Element]) -> 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'
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:5: warning: capture of 'completion' with non-sendable type '(([Element]) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| |- warning: capture of 'completion' with non-sendable type '(([Element]) -> 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'
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:17: warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| `- warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:227:5: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
225 |
226 | queue.async(flags: .barrier) {
227 | self.array[index] = newValue
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | }
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:227:25: warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
225 |
226 | queue.async(flags: .barrier) {
227 | self.array[index] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | }
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:258:19: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
256 | var result = false
257 |
258 | if let index = self.array.index(of: element) {
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | self.array.remove(at: index)
260 | result = true
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:258:40: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
256 | var result = false
257 |
258 | if let index = self.array.index(of: element) {
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | self.array.remove(at: index)
260 | result = true
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:5: warning: capture of 'completion' with non-sendable type '((Bool) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| |- warning: capture of 'completion' with non-sendable type '((Bool) -> 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'
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:5: warning: capture of 'completion' with non-sendable type '((Bool) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| |- warning: capture of 'completion' with non-sendable type '((Bool) -> 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'
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:17: warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| `- warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:5: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:29: warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'KeyType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:36: warning: capture of 'newValue' with non-sendable type 'ValueType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'ValueType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:116:16: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
114 | func removeValue(forKey key: KeyType, completion: ((ValueType?) -> Void)? = nil) {
115 | queue.async(flags: .barrier) {
116 | let value = self.internalDictionary.removeValue(forKey: key)
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:116:60: warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'KeyType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
114 | func removeValue(forKey key: KeyType, completion: ((ValueType?) -> Void)? = nil) {
115 | queue.async(flags: .barrier) {
116 | let value = self.internalDictionary.removeValue(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:5: warning: capture of 'completion' with non-sendable type '((ValueType?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| |- warning: capture of 'completion' with non-sendable type '((ValueType?) -> 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'
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:5: warning: capture of 'completion' with non-sendable type '((ValueType?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| |- warning: capture of 'completion' with non-sendable type '((ValueType?) -> 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'
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:17: warning: capture of 'value' with non-sendable type 'ValueType?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| `- warning: capture of 'value' with non-sendable type 'ValueType?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:128:4: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
126 | func removeAll() {
127 | queue.async(flags: .barrier) {
128 | self.internalDictionary.removeAll()
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 | }
130 | }
[160/163] Compiling Pelican CwlRandom.swift
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Session/Modules/Monitor/TimeoutMonitor.swift:96:3: warning: using '_' to ignore the result of a Void-returning function is redundant
94 | }
95 |
96 | _ = schedule.add(lastEvent!)
| `- warning: using '_' to ignore the result of a Void-returning function is redundant
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:136:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
134 | func append( _ element: Element) {
135 | queue.async(flags: .barrier) {
136 | self.array.append(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:136:22: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
134 | func append( _ element: Element) {
135 | queue.async(flags: .barrier) {
136 | self.array.append(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:145:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
143 | func append( _ elements: [Element]) {
144 | queue.async(flags: .barrier) {
145 | self.array += elements
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:145:18: warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
143 | func append( _ elements: [Element]) {
144 | queue.async(flags: .barrier) {
145 | self.array += elements
| `- warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:156:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
154 | func insert( _ element: Element, at index: Int) {
155 | queue.async(flags: .barrier) {
156 | self.array.insert(element, at: index)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | }
158 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:156:22: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
154 | func insert( _ element: Element, at index: Int) {
155 | queue.async(flags: .barrier) {
156 | self.array.insert(element, at: index)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | }
158 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:167:18: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
165 | func remove(at index: Int, completion: ((Element) -> Void)? = nil) {
166 | queue.async(flags: .barrier) {
167 | let element = self.array.remove(at: index)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:170:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | DispatchQueue.main.async {
170 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:170:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | DispatchQueue.main.async {
170 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:170:17: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
168 |
169 | DispatchQueue.main.async {
170 | completion?(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:182:22: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
180 | func remove(where predicate: @escaping (Element) -> Bool, completion: ((Element) -> Void)? = nil) {
181 | queue.async(flags: .barrier) {
182 | guard let index = self.array.index(where: predicate) else { return }
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | let element = self.array.remove(at: index)
184 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:182:46: warning: capture of 'predicate' with non-sendable type '(Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | func remove(where predicate: @escaping (Element) -> Bool, completion: ((Element) -> Void)? = nil) {
181 | queue.async(flags: .barrier) {
182 | guard let index = self.array.index(where: predicate) else { return }
| |- warning: capture of 'predicate' with non-sendable type '(Element) -> Bool' 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'
183 | let element = self.array.remove(at: index)
184 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:186:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 |
185 | DispatchQueue.main.async {
186 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:186:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 |
185 | DispatchQueue.main.async {
186 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:186:17: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
184 |
185 | DispatchQueue.main.async {
186 | completion?(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:196:19: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
194 | func removeAll(completion: (([Element]) -> Void)? = nil) {
195 | queue.async(flags: .barrier) {
196 | let elements = self.array
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | self.array.removeAll()
198 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:5: warning: capture of 'completion' with non-sendable type '(([Element]) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| |- warning: capture of 'completion' with non-sendable type '(([Element]) -> 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'
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:5: warning: capture of 'completion' with non-sendable type '(([Element]) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| |- warning: capture of 'completion' with non-sendable type '(([Element]) -> 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'
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:17: warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| `- warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:227:5: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
225 |
226 | queue.async(flags: .barrier) {
227 | self.array[index] = newValue
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | }
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:227:25: warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
225 |
226 | queue.async(flags: .barrier) {
227 | self.array[index] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | }
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:258:19: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
256 | var result = false
257 |
258 | if let index = self.array.index(of: element) {
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | self.array.remove(at: index)
260 | result = true
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:258:40: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
256 | var result = false
257 |
258 | if let index = self.array.index(of: element) {
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | self.array.remove(at: index)
260 | result = true
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:5: warning: capture of 'completion' with non-sendable type '((Bool) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| |- warning: capture of 'completion' with non-sendable type '((Bool) -> 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'
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:5: warning: capture of 'completion' with non-sendable type '((Bool) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| |- warning: capture of 'completion' with non-sendable type '((Bool) -> 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'
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:17: warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| `- warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:5: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:29: warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'KeyType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:36: warning: capture of 'newValue' with non-sendable type 'ValueType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'ValueType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:116:16: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
114 | func removeValue(forKey key: KeyType, completion: ((ValueType?) -> Void)? = nil) {
115 | queue.async(flags: .barrier) {
116 | let value = self.internalDictionary.removeValue(forKey: key)
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:116:60: warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'KeyType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
114 | func removeValue(forKey key: KeyType, completion: ((ValueType?) -> Void)? = nil) {
115 | queue.async(flags: .barrier) {
116 | let value = self.internalDictionary.removeValue(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:5: warning: capture of 'completion' with non-sendable type '((ValueType?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| |- warning: capture of 'completion' with non-sendable type '((ValueType?) -> 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'
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:5: warning: capture of 'completion' with non-sendable type '((ValueType?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| |- warning: capture of 'completion' with non-sendable type '((ValueType?) -> 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'
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:17: warning: capture of 'value' with non-sendable type 'ValueType?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| `- warning: capture of 'value' with non-sendable type 'ValueType?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:128:4: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
126 | func removeAll() {
127 | queue.async(flags: .barrier) {
128 | self.internalDictionary.removeAll()
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 | }
130 | }
[161/163] Compiling Pelican SynchronisedArray.swift
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Session/Modules/Monitor/TimeoutMonitor.swift:96:3: warning: using '_' to ignore the result of a Void-returning function is redundant
94 | }
95 |
96 | _ = schedule.add(lastEvent!)
| `- warning: using '_' to ignore the result of a Void-returning function is redundant
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:136:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
134 | func append( _ element: Element) {
135 | queue.async(flags: .barrier) {
136 | self.array.append(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:136:22: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
134 | func append( _ element: Element) {
135 | queue.async(flags: .barrier) {
136 | self.array.append(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:145:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
143 | func append( _ elements: [Element]) {
144 | queue.async(flags: .barrier) {
145 | self.array += elements
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:145:18: warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
143 | func append( _ elements: [Element]) {
144 | queue.async(flags: .barrier) {
145 | self.array += elements
| `- warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:156:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
154 | func insert( _ element: Element, at index: Int) {
155 | queue.async(flags: .barrier) {
156 | self.array.insert(element, at: index)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | }
158 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:156:22: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
154 | func insert( _ element: Element, at index: Int) {
155 | queue.async(flags: .barrier) {
156 | self.array.insert(element, at: index)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | }
158 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:167:18: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
165 | func remove(at index: Int, completion: ((Element) -> Void)? = nil) {
166 | queue.async(flags: .barrier) {
167 | let element = self.array.remove(at: index)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:170:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | DispatchQueue.main.async {
170 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:170:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | DispatchQueue.main.async {
170 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:170:17: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
168 |
169 | DispatchQueue.main.async {
170 | completion?(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:182:22: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
180 | func remove(where predicate: @escaping (Element) -> Bool, completion: ((Element) -> Void)? = nil) {
181 | queue.async(flags: .barrier) {
182 | guard let index = self.array.index(where: predicate) else { return }
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | let element = self.array.remove(at: index)
184 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:182:46: warning: capture of 'predicate' with non-sendable type '(Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | func remove(where predicate: @escaping (Element) -> Bool, completion: ((Element) -> Void)? = nil) {
181 | queue.async(flags: .barrier) {
182 | guard let index = self.array.index(where: predicate) else { return }
| |- warning: capture of 'predicate' with non-sendable type '(Element) -> Bool' 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'
183 | let element = self.array.remove(at: index)
184 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:186:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 |
185 | DispatchQueue.main.async {
186 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:186:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 |
185 | DispatchQueue.main.async {
186 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:186:17: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
184 |
185 | DispatchQueue.main.async {
186 | completion?(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:196:19: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
194 | func removeAll(completion: (([Element]) -> Void)? = nil) {
195 | queue.async(flags: .barrier) {
196 | let elements = self.array
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | self.array.removeAll()
198 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:5: warning: capture of 'completion' with non-sendable type '(([Element]) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| |- warning: capture of 'completion' with non-sendable type '(([Element]) -> 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'
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:5: warning: capture of 'completion' with non-sendable type '(([Element]) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| |- warning: capture of 'completion' with non-sendable type '(([Element]) -> 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'
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:17: warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| `- warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:227:5: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
225 |
226 | queue.async(flags: .barrier) {
227 | self.array[index] = newValue
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | }
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:227:25: warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
225 |
226 | queue.async(flags: .barrier) {
227 | self.array[index] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | }
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:258:19: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
256 | var result = false
257 |
258 | if let index = self.array.index(of: element) {
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | self.array.remove(at: index)
260 | result = true
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:258:40: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
256 | var result = false
257 |
258 | if let index = self.array.index(of: element) {
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | self.array.remove(at: index)
260 | result = true
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:5: warning: capture of 'completion' with non-sendable type '((Bool) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| |- warning: capture of 'completion' with non-sendable type '((Bool) -> 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'
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:5: warning: capture of 'completion' with non-sendable type '((Bool) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| |- warning: capture of 'completion' with non-sendable type '((Bool) -> 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'
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:17: warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| `- warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:5: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:29: warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'KeyType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:36: warning: capture of 'newValue' with non-sendable type 'ValueType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'ValueType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:116:16: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
114 | func removeValue(forKey key: KeyType, completion: ((ValueType?) -> Void)? = nil) {
115 | queue.async(flags: .barrier) {
116 | let value = self.internalDictionary.removeValue(forKey: key)
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:116:60: warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'KeyType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
114 | func removeValue(forKey key: KeyType, completion: ((ValueType?) -> Void)? = nil) {
115 | queue.async(flags: .barrier) {
116 | let value = self.internalDictionary.removeValue(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:5: warning: capture of 'completion' with non-sendable type '((ValueType?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| |- warning: capture of 'completion' with non-sendable type '((ValueType?) -> 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'
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:5: warning: capture of 'completion' with non-sendable type '((ValueType?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| |- warning: capture of 'completion' with non-sendable type '((ValueType?) -> 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'
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:17: warning: capture of 'value' with non-sendable type 'ValueType?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| `- warning: capture of 'value' with non-sendable type 'ValueType?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:128:4: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
126 | func removeAll() {
127 | queue.async(flags: .barrier) {
128 | self.internalDictionary.removeAll()
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 | }
130 | }
[162/163] Compiling Pelican SynchronisedDictionary.swift
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Session/Modules/Monitor/TimeoutMonitor.swift:96:3: warning: using '_' to ignore the result of a Void-returning function is redundant
94 | }
95 |
96 | _ = schedule.add(lastEvent!)
| `- warning: using '_' to ignore the result of a Void-returning function is redundant
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:136:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
134 | func append( _ element: Element) {
135 | queue.async(flags: .barrier) {
136 | self.array.append(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:136:22: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
134 | func append( _ element: Element) {
135 | queue.async(flags: .barrier) {
136 | self.array.append(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:145:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
143 | func append( _ elements: [Element]) {
144 | queue.async(flags: .barrier) {
145 | self.array += elements
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:145:18: warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
143 | func append( _ elements: [Element]) {
144 | queue.async(flags: .barrier) {
145 | self.array += elements
| `- warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:156:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
154 | func insert( _ element: Element, at index: Int) {
155 | queue.async(flags: .barrier) {
156 | self.array.insert(element, at: index)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | }
158 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:156:22: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
154 | func insert( _ element: Element, at index: Int) {
155 | queue.async(flags: .barrier) {
156 | self.array.insert(element, at: index)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | }
158 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:167:18: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
165 | func remove(at index: Int, completion: ((Element) -> Void)? = nil) {
166 | queue.async(flags: .barrier) {
167 | let element = self.array.remove(at: index)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:170:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | DispatchQueue.main.async {
170 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:170:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | DispatchQueue.main.async {
170 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:170:17: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
168 |
169 | DispatchQueue.main.async {
170 | completion?(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:182:22: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
180 | func remove(where predicate: @escaping (Element) -> Bool, completion: ((Element) -> Void)? = nil) {
181 | queue.async(flags: .barrier) {
182 | guard let index = self.array.index(where: predicate) else { return }
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | let element = self.array.remove(at: index)
184 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:182:46: warning: capture of 'predicate' with non-sendable type '(Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | func remove(where predicate: @escaping (Element) -> Bool, completion: ((Element) -> Void)? = nil) {
181 | queue.async(flags: .barrier) {
182 | guard let index = self.array.index(where: predicate) else { return }
| |- warning: capture of 'predicate' with non-sendable type '(Element) -> Bool' 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'
183 | let element = self.array.remove(at: index)
184 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:186:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 |
185 | DispatchQueue.main.async {
186 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:186:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 |
185 | DispatchQueue.main.async {
186 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:186:17: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
184 |
185 | DispatchQueue.main.async {
186 | completion?(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:196:19: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
194 | func removeAll(completion: (([Element]) -> Void)? = nil) {
195 | queue.async(flags: .barrier) {
196 | let elements = self.array
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | self.array.removeAll()
198 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:5: warning: capture of 'completion' with non-sendable type '(([Element]) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| |- warning: capture of 'completion' with non-sendable type '(([Element]) -> 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'
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:5: warning: capture of 'completion' with non-sendable type '(([Element]) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| |- warning: capture of 'completion' with non-sendable type '(([Element]) -> 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'
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:17: warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| `- warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:227:5: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
225 |
226 | queue.async(flags: .barrier) {
227 | self.array[index] = newValue
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | }
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:227:25: warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
225 |
226 | queue.async(flags: .barrier) {
227 | self.array[index] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | }
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:258:19: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
256 | var result = false
257 |
258 | if let index = self.array.index(of: element) {
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | self.array.remove(at: index)
260 | result = true
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:258:40: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
256 | var result = false
257 |
258 | if let index = self.array.index(of: element) {
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | self.array.remove(at: index)
260 | result = true
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:5: warning: capture of 'completion' with non-sendable type '((Bool) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| |- warning: capture of 'completion' with non-sendable type '((Bool) -> 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'
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:5: warning: capture of 'completion' with non-sendable type '((Bool) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| |- warning: capture of 'completion' with non-sendable type '((Bool) -> 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'
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:17: warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| `- warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:5: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:29: warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'KeyType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:36: warning: capture of 'newValue' with non-sendable type 'ValueType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'ValueType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:116:16: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
114 | func removeValue(forKey key: KeyType, completion: ((ValueType?) -> Void)? = nil) {
115 | queue.async(flags: .barrier) {
116 | let value = self.internalDictionary.removeValue(forKey: key)
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:116:60: warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'KeyType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
114 | func removeValue(forKey key: KeyType, completion: ((ValueType?) -> Void)? = nil) {
115 | queue.async(flags: .barrier) {
116 | let value = self.internalDictionary.removeValue(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:5: warning: capture of 'completion' with non-sendable type '((ValueType?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| |- warning: capture of 'completion' with non-sendable type '((ValueType?) -> 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'
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:5: warning: capture of 'completion' with non-sendable type '((ValueType?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| |- warning: capture of 'completion' with non-sendable type '((ValueType?) -> 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'
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:17: warning: capture of 'value' with non-sendable type 'ValueType?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| `- warning: capture of 'value' with non-sendable type 'ValueType?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:128:4: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
126 | func removeAll() {
127 | queue.async(flags: .barrier) {
128 | self.internalDictionary.removeAll()
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 | }
130 | }
[163/163] Compiling Pelican Utilities.swift
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Session/Modules/Monitor/TimeoutMonitor.swift:96:3: warning: using '_' to ignore the result of a Void-returning function is redundant
94 | }
95 |
96 | _ = schedule.add(lastEvent!)
| `- warning: using '_' to ignore the result of a Void-returning function is redundant
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:136:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
134 | func append( _ element: Element) {
135 | queue.async(flags: .barrier) {
136 | self.array.append(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:136:22: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
134 | func append( _ element: Element) {
135 | queue.async(flags: .barrier) {
136 | self.array.append(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:145:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
143 | func append( _ elements: [Element]) {
144 | queue.async(flags: .barrier) {
145 | self.array += elements
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:145:18: warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
143 | func append( _ elements: [Element]) {
144 | queue.async(flags: .barrier) {
145 | self.array += elements
| `- warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:156:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
154 | func insert( _ element: Element, at index: Int) {
155 | queue.async(flags: .barrier) {
156 | self.array.insert(element, at: index)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | }
158 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:156:22: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
154 | func insert( _ element: Element, at index: Int) {
155 | queue.async(flags: .barrier) {
156 | self.array.insert(element, at: index)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | }
158 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:167:18: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
165 | func remove(at index: Int, completion: ((Element) -> Void)? = nil) {
166 | queue.async(flags: .barrier) {
167 | let element = self.array.remove(at: index)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:170:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | DispatchQueue.main.async {
170 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:170:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | DispatchQueue.main.async {
170 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:170:17: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
168 |
169 | DispatchQueue.main.async {
170 | completion?(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:182:22: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
180 | func remove(where predicate: @escaping (Element) -> Bool, completion: ((Element) -> Void)? = nil) {
181 | queue.async(flags: .barrier) {
182 | guard let index = self.array.index(where: predicate) else { return }
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | let element = self.array.remove(at: index)
184 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:182:46: warning: capture of 'predicate' with non-sendable type '(Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | func remove(where predicate: @escaping (Element) -> Bool, completion: ((Element) -> Void)? = nil) {
181 | queue.async(flags: .barrier) {
182 | guard let index = self.array.index(where: predicate) else { return }
| |- warning: capture of 'predicate' with non-sendable type '(Element) -> Bool' 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'
183 | let element = self.array.remove(at: index)
184 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:186:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 |
185 | DispatchQueue.main.async {
186 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:186:5: warning: capture of 'completion' with non-sendable type '((Element) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 |
185 | DispatchQueue.main.async {
186 | completion?(element)
| |- warning: capture of 'completion' with non-sendable type '((Element) -> 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'
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:186:17: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
184 |
185 | DispatchQueue.main.async {
186 | completion?(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:196:19: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
194 | func removeAll(completion: (([Element]) -> Void)? = nil) {
195 | queue.async(flags: .barrier) {
196 | let elements = self.array
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | self.array.removeAll()
198 |
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:5: warning: capture of 'completion' with non-sendable type '(([Element]) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| |- warning: capture of 'completion' with non-sendable type '(([Element]) -> 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'
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:5: warning: capture of 'completion' with non-sendable type '(([Element]) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| |- warning: capture of 'completion' with non-sendable type '(([Element]) -> 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'
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:200:17: warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
198 |
199 | DispatchQueue.main.async {
200 | completion?(elements)
| `- warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | }
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:227:5: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
225 |
226 | queue.async(flags: .barrier) {
227 | self.array[index] = newValue
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | }
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:227:25: warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
225 |
226 | queue.async(flags: .barrier) {
227 | self.array[index] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | }
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:258:19: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
256 | var result = false
257 |
258 | if let index = self.array.index(of: element) {
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | self.array.remove(at: index)
260 | result = true
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:258:40: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | An array that allows for thread-safe concurrent access.
13 | */
14 | public class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
15 | fileprivate let queue = DispatchQueue(label: "com.Pelican.SynthronizedArray", attributes: .concurrent)
16 | fileprivate var array = [Element]()
:
256 | var result = false
257 |
258 | if let index = self.array.index(of: element) {
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | self.array.remove(at: index)
260 | result = true
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:5: warning: capture of 'completion' with non-sendable type '((Bool) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| |- warning: capture of 'completion' with non-sendable type '((Bool) -> 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'
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:5: warning: capture of 'completion' with non-sendable type '((Bool) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| |- warning: capture of 'completion' with non-sendable type '((Bool) -> 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'
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedArray.swift:264:17: warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
262 |
263 | DispatchQueue.main.async {
264 | completion?(result)
| `- warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:5: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:29: warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'KeyType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:93:36: warning: capture of 'newValue' with non-sendable type 'ValueType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
91 |
92 | queue.async(flags: .barrier) {
93 | self.internalDictionary[key] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'ValueType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:116:16: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
114 | func removeValue(forKey key: KeyType, completion: ((ValueType?) -> Void)? = nil) {
115 | queue.async(flags: .barrier) {
116 | let value = self.internalDictionary.removeValue(forKey: key)
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:116:60: warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'KeyType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
114 | func removeValue(forKey key: KeyType, completion: ((ValueType?) -> Void)? = nil) {
115 | queue.async(flags: .barrier) {
116 | let value = self.internalDictionary.removeValue(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'KeyType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:5: warning: capture of 'completion' with non-sendable type '((ValueType?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| |- warning: capture of 'completion' with non-sendable type '((ValueType?) -> 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'
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:5: warning: capture of 'completion' with non-sendable type '((ValueType?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| |- warning: capture of 'completion' with non-sendable type '((ValueType?) -> 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'
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:119:17: warning: capture of 'value' with non-sendable type 'ValueType?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: consider making generic parameter 'ValueType' conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
117 |
118 | DispatchQueue.main.async {
119 | completion?(value)
| `- warning: capture of 'value' with non-sendable type 'ValueType?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Pelican/Utilities/SynchronisedDictionary.swift:128:4: warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | of the in-built methods and properties that a normal dictionary supports.
13 | */
14 | public class SynchronisedDictionary<KeyType: Hashable, ValueType> {
| `- note: generic class 'SynchronisedDictionary' does not conform to the 'Sendable' protocol
15 |
16 | typealias Key = KeyType
:
126 | func removeAll() {
127 | queue.async(flags: .barrier) {
128 | self.internalDictionary.removeAll()
| `- warning: capture of 'self' with non-sendable type 'SynchronisedDictionary<KeyType, ValueType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 | }
130 | }
Build complete! (25.27s)
Fetching https://github.com/IBM-Swift/SwiftyJSON.git
[1/2687] Fetching swiftyjson
Fetched https://github.com/IBM-Swift/SwiftyJSON.git from cache (1.13s)
Computing version for https://github.com/IBM-Swift/SwiftyJSON.git
Computed https://github.com/IBM-Swift/SwiftyJSON.git at 17.0.5 (0.74s)
Creating working copy for https://github.com/IBM-Swift/SwiftyJSON.git
Working copy of https://github.com/IBM-Swift/SwiftyJSON.git resolved at 17.0.5
Build complete.
{
"dependencies" : [
{
"identity" : "swiftyjson",
"requirement" : {
"range" : [
{
"lower_bound" : "17.0.0",
"upper_bound" : "18.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/IBM-Swift/SwiftyJSON.git"
}
],
"manifest_display_name" : "Pelican",
"name" : "Pelican",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Pelican",
"targets" : [
"Pelican"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Pelican",
"module_type" : "SwiftTarget",
"name" : "Pelican",
"path" : "Sources/Pelican",
"product_dependencies" : [
"SwiftyJSON"
],
"product_memberships" : [
"Pelican"
],
"sources" : [
"API/Request/Codable+String.swift",
"API/Request/Request+Admin.swift",
"API/Request/Request+Answer.swift",
"API/Request/Request+Basic.swift",
"API/Request/Request+Chat.swift",
"API/Request/Request+EditMessage.swift",
"API/Request/Request+Game.swift",
"API/Request/Request+Payments.swift",
"API/Request/Request+Stickers.swift",
"API/Request/TelegramRequest.swift",
"API/Response/TelegramResponse.swift",
"API/Response/TelegramResponseError.swift",
"API/Types/Albums/InputMedia.swift",
"API/Types/Albums/InputMediaPhoto.swift",
"API/Types/Albums/InputMediaVideo.swift",
"API/Types/Callback/CallbackQuery.swift",
"API/Types/Chat/Chat.swift",
"API/Types/Chat/ChatAction.swift",
"API/Types/Chat/ChatMember.swift",
"API/Types/Chat/ChatPhoto.swift",
"API/Types/FileDownload.swift",
"API/Types/Game/Animation.swift",
"API/Types/Game/Game.swift",
"API/Types/Game/GameHighScore.swift",
"API/Types/Inline/ChosenInlineResult.swift",
"API/Types/Inline/InlineQuery.swift",
"API/Types/Inline/InlineQueryResult/InlineResultArticle.swift",
"API/Types/Inline/InlineQueryResult/InlineResultAudio.swift",
"API/Types/Inline/InlineQueryResult/InlineResultContact.swift",
"API/Types/Inline/InlineQueryResult/InlineResultDocument.swift",
"API/Types/Inline/InlineQueryResult/InlineResultGame.swift",
"API/Types/Inline/InlineQueryResult/InlineResultGif.swift",
"API/Types/Inline/InlineQueryResult/InlineResultLocation.swift",
"API/Types/Inline/InlineQueryResult/InlineResultMpeg4Gif.swift",
"API/Types/Inline/InlineQueryResult/InlineResultPhoto.swift",
"API/Types/Inline/InlineQueryResult/InlineResultSticker.swift",
"API/Types/Inline/InlineQueryResult/InlineResultVenue.swift",
"API/Types/Inline/InlineQueryResult/InlineResultVideo.swift",
"API/Types/Inline/InlineQueryResult/InlineResultVoice.swift",
"API/Types/Inline/InlineResult.swift",
"API/Types/Inline/InlineResultAny.swift",
"API/Types/Inline/InlineResultType.swift",
"API/Types/Inline/InputMessageContent/InputMessageContent.swift",
"API/Types/Inline/InputMessageContent/InputMessageContentType.swift",
"API/Types/Inline/InputMessageContent/InputMessageContent_Any.swift",
"API/Types/Inline/InputMessageContent/InputMessageContent_Contact.swift",
"API/Types/Inline/InputMessageContent/InputMessageContent_Location.swift",
"API/Types/Inline/InputMessageContent/InputMessageContent_Text.swift",
"API/Types/Inline/InputMessageContent/InputMessageContent_Venue.swift",
"API/Types/Markup/ForceReply.swift",
"API/Types/Markup/Inline/InlineKey.swift",
"API/Types/Markup/Inline/InlineKeyType.swift",
"API/Types/Markup/Inline/InlineKeyboard.swift",
"API/Types/Markup/Keyboard/Keyboard.swift",
"API/Types/Markup/Keyboard/KeyboardKey.swift",
"API/Types/Markup/Keyboard/KeyboardRemove.swift",
"API/Types/Markup/MarkupType.swift",
"API/Types/Message Content/Audio.swift",
"API/Types/Message Content/Contact.swift",
"API/Types/Message Content/Document.swift",
"API/Types/Message Content/Location.swift",
"API/Types/Message Content/Photo.swift",
"API/Types/Message Content/Venue.swift",
"API/Types/Message Content/Video.swift",
"API/Types/Message Content/VideoNote.swift",
"API/Types/Message Content/Voice.swift",
"API/Types/Message/Message.swift",
"API/Types/Message/MessageEntity.swift",
"API/Types/Message/MessageParseMode.swift",
"API/Types/Message/MessageType.swift",
"API/Types/Payments/Invoice.swift",
"API/Types/Payments/LabeledPrice.swift",
"API/Types/Payments/OrderInfo.swift",
"API/Types/Payments/PreCheckoutQuery.swift",
"API/Types/Payments/ShippingAddress.swift",
"API/Types/Payments/ShippingOption.swift",
"API/Types/Payments/ShippingQuery.swift",
"API/Types/Payments/SuccessfulPayment.swift",
"API/Types/Stickers/MaskPosition.swift",
"API/Types/Stickers/MaskPositionPoint.swift",
"API/Types/Stickers/Sticker.swift",
"API/Types/Stickers/StickerSet.swift",
"API/Types/Type+Custom.swift",
"API/Types/Type+Error.swift",
"API/Types/Type+Extensions.swift",
"API/Types/Type+Protocols.swift",
"API/Types/Type+Standard.swift",
"API/Types/User/User.swift",
"API/Types/User/UserProfilePhotos.swift",
"HTTP/Status.swift",
"HTTP/Version.swift",
"Pelican/Client/Client.swift",
"Pelican/Client/ClientConnection+Error.swift",
"Pelican/Client/ClientConnection.swift",
"Pelican/Client/Portal.swift",
"Pelican/Client/Result.swift",
"Pelican/Files/Cache+Error.swift",
"Pelican/Files/CacheFile.swift",
"Pelican/Files/CacheManager.swift",
"Pelican/Log/Log+Debug.swift",
"Pelican/Log/Log+Enum.swift",
"Pelican/Log/Log+Prints.swift",
"Pelican/Log/Log.swift",
"Pelican/Log/LogLevel.swift",
"Pelican/Moderator/Moderator.swift",
"Pelican/Pelican+Delegates.swift",
"Pelican/Pelican+Errors.swift",
"Pelican/Pelican+Files.swift",
"Pelican/Pelican.swift",
"Pelican/Queues/LoopQueue.swift",
"Pelican/Schedule/Duration.swift",
"Pelican/Schedule/Schedule.swift",
"Pelican/Schedule/ScheduleEvent.swift",
"Pelican/Session Handling/SessionBuilder.swift",
"Pelican/Session Handling/SessionManager.swift",
"Pelican/Session Handling/Spawn.swift",
"Pelican/Update/Update.swift",
"Pelican/Update/UpdateType.swift",
"Session/Core/Session.swift",
"Session/Core/SessionDelegate.swift",
"Session/Core/SessionIDType.swift",
"Session/Core/SessionTag.swift",
"Session/Modules/API Request/Async/Async+Admin.swift",
"Session/Modules/API Request/Async/Async+Answer.swift",
"Session/Modules/API Request/Async/Async+Basic.swift",
"Session/Modules/API Request/Async/Async+Edit.swift",
"Session/Modules/API Request/Async/Async+Stickers.swift",
"Session/Modules/API Request/Async/MethodRequestAsync.swift",
"Session/Modules/API Request/MethodRequest.swift",
"Session/Modules/API Request/Sync/MethodRequestSync.swift",
"Session/Modules/API Request/Sync/Sync+Admin.swift",
"Session/Modules/API Request/Sync/Sync+Answer.swift",
"Session/Modules/API Request/Sync/Sync+Basic.swift",
"Session/Modules/API Request/Sync/Sync+Edit.swift",
"Session/Modules/API Request/Sync/Sync+Payments.swift",
"Session/Modules/API Request/Sync/Sync+Stickers.swift",
"Session/Modules/DispatchQueue/SessionDispatchQueue.swift",
"Session/Modules/Event/SessionEvent.swift",
"Session/Modules/Filter/UpdateFilter.swift",
"Session/Modules/Moderator/SessionModerator.swift",
"Session/Modules/Monitor/FloodMonitor.swift",
"Session/Modules/Monitor/TimeoutMonitor.swift",
"Session/Modules/Router/Route.swift",
"Session/Modules/Router/Types/RouteCommand.swift",
"Session/Modules/Router/Types/RouteListen.swift",
"Session/Modules/Router/Types/RouteManual.swift",
"Session/Modules/Router/Types/RoutePass.swift",
"Session/Modules/ScheduleQueue/Queue.swift",
"Session/Modules/Session Request/SessionRequest.swift",
"Session/Types/ChatSession.swift",
"Session/Types/UserSession.swift",
"Utilities/CasedEnum.swift",
"Utilities/CwlRandom.swift",
"Utilities/SynchronisedArray.swift",
"Utilities/SynchronisedDictionary.swift",
"Utilities/Utilities.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Done.