Build Information
Successful build of async-kit, reference 1.21.0 (6f3615
), with Swift 6.1 for macOS (SPM) on 23 Aug 2025 16:13:53 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
17 |
18 | /// Multiplies two futures and produces their product
19 | public static func * (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 * $1 } }
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
20 |
21 | /// Multiplies two futures and stores the result in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:29:137: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
27 | extension EventLoopFuture {
28 | /// Adds two futures and produces their sum
29 | public static func + <T>(lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture where Value == Array<T>, T: Equatable { lhs.and(rhs).map { $0 + $1 } }
| | `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
30 |
31 | /// Adds two futures and stores the result in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:36:13: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 |
34 | /// Subtracts one future from another and produces their difference
35 | public static func - <T>(lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture where Value == Array<T>, T: Equatable {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
36 | lhs.and(rhs).map { l, r in l.filter { !r.contains($0) } }
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
37 | }
38 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:47:96: warning: type 'Value' does not conform to the 'Sendable' protocol
45 | extension EventLoopFuture where Value: BinaryInteger {
46 | /// Returns the quotient of dividing the first future by the second
47 | public static func / (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 / $1 } }
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
48 |
49 | /// Divides the first future by the second and stores the quotient in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:53:96: warning: type 'Value' does not conform to the 'Sendable' protocol
51 |
52 | /// Returns the remainder of dividing the first future by the second
53 | public static func % (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 % $1 } }
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
54 |
55 | /// Divides the first future by the second and stores the remainder in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:63:122: warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
61 | extension EventLoopFuture where Value: BinaryInteger {
62 | /// Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument
63 | public static func < (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 < $1 } }
| | `- warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
| `- note: consider making generic parameter 'some BinaryInteger' conform to the 'Sendable' protocol
64 |
65 | /// Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:66:123: warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
64 |
65 | /// Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument
66 | public static func <= (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 <= $1 } }
| | `- warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
| `- note: consider making generic parameter 'some BinaryInteger' conform to the 'Sendable' protocol
67 |
68 | /// Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:69:123: warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
67 |
68 | /// Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument
69 | public static func >= (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 >= $1 } }
| | `- warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
| `- note: consider making generic parameter 'some BinaryInteger' conform to the 'Sendable' protocol
70 |
71 | /// Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:72:122: warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
70 |
71 | /// Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument
72 | public static func > (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 > $1 } }
| | `- warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
| `- note: consider making generic parameter 'some BinaryInteger' conform to the 'Sendable' protocol
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:79:117: warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
77 | extension EventLoopFuture where Value: BinaryInteger {
78 | /// Returns the result of shifting a future’s binary representation the specified number of digits to the left
79 | public static func << (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture { lhs.and(rhs).map { $0 << $1 } }
| | `- warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
| `- note: consider making generic parameter 'some BinaryInteger' conform to the 'Sendable' protocol
80 |
81 | /// Stores the result of shifting a future’s binary representation the specified number of digits to the left in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:85:117: warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
83 |
84 | /// Returns the result of shifting a future’s binary representation the specified number of digits to the right
85 | public static func >> (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture { lhs.and(rhs).map { $0 >> $1 } }
| | `- warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
| `- note: consider making generic parameter 'some BinaryInteger' conform to the 'Sendable' protocol
86 |
87 | /// Stores the result of shifting a future’s binary representation the specified number of digits to the right in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:91:96: warning: type 'Value' does not conform to the 'Sendable' protocol
89 |
90 | /// Returns the result of performing a bitwise AND operation on the two given futures
91 | public static func & (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 & $1 } }
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
92 |
93 | /// Stores the result of performing a bitwise AND operation on the two given futures in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:97:96: warning: type 'Value' does not conform to the 'Sendable' protocol
95 |
96 | /// Returns the result of performing a bitwise OR operation on the two given futures
97 | public static func | (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 | $1 } }
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
98 |
99 | /// Stores the result of performing a bitwise OR operation on the two given futures in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:103:96: warning: type 'Value' does not conform to the 'Sendable' protocol
101 |
102 | /// Returns the result of performing a bitwise XOR operation on the two given futures
103 | public static func ^ (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 ^ $1 } }
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
104 |
105 | /// Stores the result of performing a bitwise XOR operation on the two given futures in the left-hand-side variable
[576/586] Compiling AsyncKit FutureOperators.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Try.swift:19:21: warning: type 'NewValue' does not conform to the 'Sendable' protocol
2 |
3 | extension EventLoopFuture {
4 | public func tryFlatMap<NewValue>(
| `- note: consider making generic parameter 'NewValue' conform to the 'Sendable' protocol
5 | file _: StaticString = #file, line _: UInt = #line,
6 | _ callback: @escaping (Value) throws -> EventLoopFuture<NewValue>
:
17 | /// With `tryFlatMap`, the provided callback _may_ throw Errors, causing the returned `EventLoopFuture<Value>`
18 | /// to report failure immediately after the completion of the original `EventLoopFuture`.
19 | return self.flatMap() { [eventLoop] value in
| `- warning: type 'NewValue' does not conform to the 'Sendable' protocol
20 | do {
21 | return try callback(value)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Try.swift:21:28: warning: capture of 'callback' with non-sendable type '(Value) throws -> EventLoopFuture<NewValue>' in a '@Sendable' closure
19 | return self.flatMap() { [eventLoop] value in
20 | do {
21 | return try callback(value)
| |- warning: capture of 'callback' with non-sendable type '(Value) throws -> EventLoopFuture<NewValue>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
22 | } catch {
23 | return eventLoop.makeFailedFuture(error)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:7:96: warning: type 'Value' does not conform to the 'Sendable' protocol
5 | extension EventLoopFuture where Value: Numeric {
6 | /// Adds two futures and produces their sum
7 | public static func + (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 + $1 } }
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
8 |
9 | /// Adds two futures and stores the result in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:13:100: warning: type 'Value' does not conform to the 'Sendable' protocol
11 |
12 | /// Subtracts one future from another and produces their difference
13 | public static func - (_ lhs: EventLoopFuture, _ rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 - $1 } }
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
14 |
15 | /// Subtracts the second future from the first and stores the difference in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:19:96: warning: type 'Value' does not conform to the 'Sendable' protocol
17 |
18 | /// Multiplies two futures and produces their product
19 | public static func * (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 * $1 } }
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
20 |
21 | /// Multiplies two futures and stores the result in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:29:137: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
27 | extension EventLoopFuture {
28 | /// Adds two futures and produces their sum
29 | public static func + <T>(lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture where Value == Array<T>, T: Equatable { lhs.and(rhs).map { $0 + $1 } }
| | `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
30 |
31 | /// Adds two futures and stores the result in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:36:13: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 |
34 | /// Subtracts one future from another and produces their difference
35 | public static func - <T>(lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture where Value == Array<T>, T: Equatable {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
36 | lhs.and(rhs).map { l, r in l.filter { !r.contains($0) } }
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
37 | }
38 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:47:96: warning: type 'Value' does not conform to the 'Sendable' protocol
45 | extension EventLoopFuture where Value: BinaryInteger {
46 | /// Returns the quotient of dividing the first future by the second
47 | public static func / (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 / $1 } }
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
48 |
49 | /// Divides the first future by the second and stores the quotient in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:53:96: warning: type 'Value' does not conform to the 'Sendable' protocol
51 |
52 | /// Returns the remainder of dividing the first future by the second
53 | public static func % (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 % $1 } }
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
54 |
55 | /// Divides the first future by the second and stores the remainder in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:63:122: warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
61 | extension EventLoopFuture where Value: BinaryInteger {
62 | /// Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument
63 | public static func < (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 < $1 } }
| | `- warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
| `- note: consider making generic parameter 'some BinaryInteger' conform to the 'Sendable' protocol
64 |
65 | /// Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:66:123: warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
64 |
65 | /// Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument
66 | public static func <= (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 <= $1 } }
| | `- warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
| `- note: consider making generic parameter 'some BinaryInteger' conform to the 'Sendable' protocol
67 |
68 | /// Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:69:123: warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
67 |
68 | /// Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument
69 | public static func >= (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 >= $1 } }
| | `- warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
| `- note: consider making generic parameter 'some BinaryInteger' conform to the 'Sendable' protocol
70 |
71 | /// Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:72:122: warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
70 |
71 | /// Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument
72 | public static func > (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 > $1 } }
| | `- warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
| `- note: consider making generic parameter 'some BinaryInteger' conform to the 'Sendable' protocol
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:79:117: warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
77 | extension EventLoopFuture where Value: BinaryInteger {
78 | /// Returns the result of shifting a future’s binary representation the specified number of digits to the left
79 | public static func << (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture { lhs.and(rhs).map { $0 << $1 } }
| | `- warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
| `- note: consider making generic parameter 'some BinaryInteger' conform to the 'Sendable' protocol
80 |
81 | /// Stores the result of shifting a future’s binary representation the specified number of digits to the left in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:85:117: warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
83 |
84 | /// Returns the result of shifting a future’s binary representation the specified number of digits to the right
85 | public static func >> (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture { lhs.and(rhs).map { $0 >> $1 } }
| | `- warning: type 'some BinaryInteger' does not conform to the 'Sendable' protocol
| `- note: consider making generic parameter 'some BinaryInteger' conform to the 'Sendable' protocol
86 |
87 | /// Stores the result of shifting a future’s binary representation the specified number of digits to the right in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:91:96: warning: type 'Value' does not conform to the 'Sendable' protocol
89 |
90 | /// Returns the result of performing a bitwise AND operation on the two given futures
91 | public static func & (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 & $1 } }
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
92 |
93 | /// Stores the result of performing a bitwise AND operation on the two given futures in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:97:96: warning: type 'Value' does not conform to the 'Sendable' protocol
95 |
96 | /// Returns the result of performing a bitwise OR operation on the two given futures
97 | public static func | (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 | $1 } }
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
98 |
99 | /// Stores the result of performing a bitwise OR operation on the two given futures in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:103:96: warning: type 'Value' does not conform to the 'Sendable' protocol
101 |
102 | /// Returns the result of performing a bitwise XOR operation on the two given futures
103 | public static func ^ (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 ^ $1 } }
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
104 |
105 | /// Stores the result of performing a bitwise XOR operation on the two given futures in the left-hand-side variable
[577/586] Compiling AsyncKit EventLoopFutureQueue+Sequence.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/EventLoopFutureQueue+Sequence.swift:23:49: warning: capture of 'results' with non-sendable type '[Value]' in a '@Sendable' closure
7 | /// original sequence. The resulting array is intended to have semantics
8 | /// substantially similar to those provided by `EventLoop.flatten(_:on:)`.
9 | public func append<S: Sequence, Value>(each seq: S, _ generator: @escaping (S.Element) -> EventLoopFuture<Value>) -> EventLoopFuture<[Value]> {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
10 | // For each element in the sequence, obtain a generated future, add the result of that future to the result
11 | // array, map the future to `Void`, and append the result to this queue. Left with the final future in the
:
21 | seq.forEach {
22 | assert({ count += 1; return true }())
23 | _ = self.append(generator($0).map { results.append($0) }, runningOn: .success)
| `- warning: capture of 'results' with non-sendable type '[Value]' in a '@Sendable' closure
24 | }
25 | return self.append(onPrevious: .success) {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/EventLoopFutureQueue+Sequence.swift:23:49: warning: mutation of captured var 'results' in concurrently-executing code
21 | seq.forEach {
22 | assert({ count += 1; return true }())
23 | _ = self.append(generator($0).map { results.append($0) }, runningOn: .success)
| `- warning: mutation of captured var 'results' in concurrently-executing code
24 | }
25 | return self.append(onPrevious: .success) {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/EventLoopFutureQueue.swift:74:31: warning: type 'Value' does not conform to the 'Sendable' protocol
68 | ///
69 | /// - Returns: The resulting future from the `generator` closure passed in.
70 | public func append<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
71 | onPrevious next: ContinueCondition = .complete,
72 | generator: @escaping () -> EventLoopFuture<Value>
73 | ) -> EventLoopFuture<Value> {
74 | return self.eventLoop.flatSubmit {
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
75 | let promise = self.eventLoop.makePromise(of: Void.self)
76 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/EventLoopFutureQueue.swift:96:45: warning: type 'Value' does not conform to the 'Sendable' protocol
68 | ///
69 | /// - Returns: The resulting future from the `generator` closure passed in.
70 | public func append<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
71 | onPrevious next: ContinueCondition = .complete,
72 | generator: @escaping () -> EventLoopFuture<Value>
:
94 | }
95 |
96 | let next = promise.futureResult.flatMap { generator() }
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
97 | self.current = next.map { _ in () }
98 | return next
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/EventLoopFutureQueue.swift:75:27: warning: capture of 'self' with non-sendable type 'EventLoopFutureQueue' in a '@Sendable' closure
2 |
3 | /// Allows you to queue closures that produce an `EventLoopFuture`, so each future only gets run if the previous ones complete, succeed, or fail.
4 | public final class EventLoopFutureQueue {
| `- note: class 'EventLoopFutureQueue' does not conform to the 'Sendable' protocol
5 |
6 | /// Under what conditions an appended closure should be run.
:
73 | ) -> EventLoopFuture<Value> {
74 | return self.eventLoop.flatSubmit {
75 | let promise = self.eventLoop.makePromise(of: Void.self)
| `- warning: capture of 'self' with non-sendable type 'EventLoopFutureQueue' in a '@Sendable' closure
76 |
77 | switch next {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/EventLoopFutureQueue.swift:77:20: warning: capture of 'next' with non-sendable type 'EventLoopFutureQueue.ContinueCondition' in a '@Sendable' closure
5 |
6 | /// Under what conditions an appended closure should be run.
7 | public enum ContinueCondition {
| `- note: consider making enum 'ContinueCondition' conform to the 'Sendable' protocol
8 |
9 | /// Run closure on the previous future's success.
:
75 | let promise = self.eventLoop.makePromise(of: Void.self)
76 |
77 | switch next {
| `- warning: capture of 'next' with non-sendable type 'EventLoopFutureQueue.ContinueCondition' in a '@Sendable' closure
78 | case .success:
79 | self.current.whenComplete { result in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/EventLoopFutureQueue.swift:96:55: warning: capture of 'generator' with non-sendable type '() -> EventLoopFuture<Value>' in a '@Sendable' closure
94 | }
95 |
96 | let next = promise.futureResult.flatMap { generator() }
| |- warning: capture of 'generator' with non-sendable type '() -> EventLoopFuture<Value>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
97 | self.current = next.map { _ in () }
98 | return next
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/EventLoopFutureQueue.swift:96:55: warning: capture of 'generator' with non-sendable type '() -> EventLoopFuture<Value>' in a '@Sendable' closure
94 | }
95 |
96 | let next = promise.futureResult.flatMap { generator() }
| |- warning: capture of 'generator' with non-sendable type '() -> EventLoopFuture<Value>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
97 | self.current = next.map { _ in () }
98 | return next
[578/586] Compiling AsyncKit EventLoopFutureQueue.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/EventLoopFutureQueue+Sequence.swift:23:49: warning: capture of 'results' with non-sendable type '[Value]' in a '@Sendable' closure
7 | /// original sequence. The resulting array is intended to have semantics
8 | /// substantially similar to those provided by `EventLoop.flatten(_:on:)`.
9 | public func append<S: Sequence, Value>(each seq: S, _ generator: @escaping (S.Element) -> EventLoopFuture<Value>) -> EventLoopFuture<[Value]> {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
10 | // For each element in the sequence, obtain a generated future, add the result of that future to the result
11 | // array, map the future to `Void`, and append the result to this queue. Left with the final future in the
:
21 | seq.forEach {
22 | assert({ count += 1; return true }())
23 | _ = self.append(generator($0).map { results.append($0) }, runningOn: .success)
| `- warning: capture of 'results' with non-sendable type '[Value]' in a '@Sendable' closure
24 | }
25 | return self.append(onPrevious: .success) {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/EventLoopFutureQueue+Sequence.swift:23:49: warning: mutation of captured var 'results' in concurrently-executing code
21 | seq.forEach {
22 | assert({ count += 1; return true }())
23 | _ = self.append(generator($0).map { results.append($0) }, runningOn: .success)
| `- warning: mutation of captured var 'results' in concurrently-executing code
24 | }
25 | return self.append(onPrevious: .success) {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/EventLoopFutureQueue.swift:74:31: warning: type 'Value' does not conform to the 'Sendable' protocol
68 | ///
69 | /// - Returns: The resulting future from the `generator` closure passed in.
70 | public func append<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
71 | onPrevious next: ContinueCondition = .complete,
72 | generator: @escaping () -> EventLoopFuture<Value>
73 | ) -> EventLoopFuture<Value> {
74 | return self.eventLoop.flatSubmit {
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
75 | let promise = self.eventLoop.makePromise(of: Void.self)
76 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/EventLoopFutureQueue.swift:96:45: warning: type 'Value' does not conform to the 'Sendable' protocol
68 | ///
69 | /// - Returns: The resulting future from the `generator` closure passed in.
70 | public func append<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
71 | onPrevious next: ContinueCondition = .complete,
72 | generator: @escaping () -> EventLoopFuture<Value>
:
94 | }
95 |
96 | let next = promise.futureResult.flatMap { generator() }
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
97 | self.current = next.map { _ in () }
98 | return next
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/EventLoopFutureQueue.swift:75:27: warning: capture of 'self' with non-sendable type 'EventLoopFutureQueue' in a '@Sendable' closure
2 |
3 | /// Allows you to queue closures that produce an `EventLoopFuture`, so each future only gets run if the previous ones complete, succeed, or fail.
4 | public final class EventLoopFutureQueue {
| `- note: class 'EventLoopFutureQueue' does not conform to the 'Sendable' protocol
5 |
6 | /// Under what conditions an appended closure should be run.
:
73 | ) -> EventLoopFuture<Value> {
74 | return self.eventLoop.flatSubmit {
75 | let promise = self.eventLoop.makePromise(of: Void.self)
| `- warning: capture of 'self' with non-sendable type 'EventLoopFutureQueue' in a '@Sendable' closure
76 |
77 | switch next {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/EventLoopFutureQueue.swift:77:20: warning: capture of 'next' with non-sendable type 'EventLoopFutureQueue.ContinueCondition' in a '@Sendable' closure
5 |
6 | /// Under what conditions an appended closure should be run.
7 | public enum ContinueCondition {
| `- note: consider making enum 'ContinueCondition' conform to the 'Sendable' protocol
8 |
9 | /// Run closure on the previous future's success.
:
75 | let promise = self.eventLoop.makePromise(of: Void.self)
76 |
77 | switch next {
| `- warning: capture of 'next' with non-sendable type 'EventLoopFutureQueue.ContinueCondition' in a '@Sendable' closure
78 | case .success:
79 | self.current.whenComplete { result in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/EventLoopFutureQueue.swift:96:55: warning: capture of 'generator' with non-sendable type '() -> EventLoopFuture<Value>' in a '@Sendable' closure
94 | }
95 |
96 | let next = promise.futureResult.flatMap { generator() }
| |- warning: capture of 'generator' with non-sendable type '() -> EventLoopFuture<Value>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
97 | self.current = next.map { _ in () }
98 | return next
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/EventLoopFutureQueue.swift:96:55: warning: capture of 'generator' with non-sendable type '() -> EventLoopFuture<Value>' in a '@Sendable' closure
94 | }
95 |
96 | let next = promise.futureResult.flatMap { generator() }
| |- warning: capture of 'generator' with non-sendable type '() -> EventLoopFuture<Value>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
97 | self.current = next.map { _ in () }
98 | return next
[579/586] Compiling AsyncKit EventLoopConnectionPool.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:184:48: warning: type 'Result' does not conform to the 'Sendable' protocol
178 | /// - closure: Callback that accepts the pooled connection.
179 | /// - Returns: A future containing the result of the closure.
180 | public func withConnection<Result>(
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
181 | logger: Logger,
182 | _ closure: @escaping (Source.Connection) -> EventLoopFuture<Result>
183 | ) -> EventLoopFuture<Result> {
184 | self.requestConnection(logger: logger).flatMap { conn in
| `- warning: type 'Result' does not conform to the 'Sendable' protocol
185 | closure(conn).always { _ in
186 | self.releaseConnection(conn, logger: logger)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:185:13: warning: capture of 'closure' with non-sendable type '(Source.Connection) -> EventLoopFuture<Result>' in a '@Sendable' closure
183 | ) -> EventLoopFuture<Result> {
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
| |- warning: capture of 'closure' with non-sendable type '(Source.Connection) -> EventLoopFuture<Result>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
186 | self.releaseConnection(conn, logger: logger)
187 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:186:17: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
186 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:186:17: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
186 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:186:40: warning: capture of 'conn' with non-sendable type 'Source.Connection' in a '@Sendable' closure
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
186 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of 'conn' with non-sendable type 'Source.Connection' in a '@Sendable' closure
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:231:79: warning: type 'Source.Connection' does not conform to the 'Sendable' protocol
229 | } else {
230 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
231 | self.eventLoop.execute { self._requestConnection0(logger: logger).cascade(to: promise) }
| `- warning: type 'Source.Connection' does not conform to the 'Sendable' protocol
232 | return promise.futureResult
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:231:38: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
229 | } else {
230 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
231 | self.eventLoop.execute { self._requestConnection0(logger: logger).cascade(to: promise) }
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
232 | return promise.futureResult
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:248:39: warning: type 'Source.Connection' does not conform to the 'Sendable' protocol
246 | if !conn.connection.isClosed {
247 | logger.trace("Using available connection")
248 | return self.eventLoop.makeSucceededFuture(conn.connection)
| `- warning: type 'Source.Connection' does not conform to the 'Sendable' protocol
249 | } else {
250 | logger.debug("Pruning defunct connection")
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:260:19: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>?' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
258 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
259 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
260 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>?' in a '@Sendable' closure
261 | logger.trace("Waiter already removed when timeout task fired", metadata: ["waiter": .stringConvertible(waiterId)])
262 | return
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:278:13: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>?' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
276 | logger.trace("Connection request completed", metadata: ["waiter": .stringConvertible(waiterId)])
277 | timeoutTask.cancel()
278 | self?.waiters.removeValue(forKey: waiterId)
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>?' in a '@Sendable' closure
279 | }
280 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:288:17: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
286 | // On success, "release" the new connection to the pool and let the waitlist logic take over
287 | logger.trace("New connection successful, servicing waitlist")
288 | self._releaseConnection0($0, logger: logger)
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
289 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
290 | self?.activeConnections -= 1
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:290:17: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>?' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
288 | self._releaseConnection0($0, logger: logger)
289 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
290 | self?.activeConnections -= 1
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>?' in a '@Sendable' closure
291 | logger.error("Opening new connection for pool failed", metadata: ["error": .string(String(reflecting: error))])
292 | return eventLoop.makeFailedFuture(error)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:328:38: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
326 | self._releaseConnection0(connection, logger: logger)
327 | } else {
328 | self.eventLoop.execute { self._releaseConnection0(connection, logger: logger) }
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
329 | }
330 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:328:63: warning: capture of 'connection' with non-sendable type 'Source.Connection' in a '@Sendable' closure
326 | self._releaseConnection0(connection, logger: logger)
327 | } else {
328 | self.eventLoop.execute { self._releaseConnection0(connection, logger: logger) }
| `- warning: capture of 'connection' with non-sendable type 'Source.Connection' in a '@Sendable' closure
329 | }
330 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:384:67: warning: type 'Source.Connection' does not conform to the 'Sendable' protocol
382 | logger.debug("Servicing connection waitlist item", metadata: ["waiter": .stringConvertible(waiter.key)])
383 | waiter.value.timeoutTask.cancel()
384 | self._requestConnection0(logger: waiter.value.logger).cascade(to: waiter.value.promise)
| `- warning: type 'Source.Connection' does not conform to the 'Sendable' protocol
385 | }
386 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:363:33: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
361 | var prunedConnections: Set<ObjectIdentifier> = []
362 |
363 | for conninfo in self.available where !conninfo.connection.isClosed {
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
364 | if conninfo.lastUse + self.maxIdleTimeBeforePruning < .now() {
365 | self.logger.debug("Pruning idle connection.")
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:401:38: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
399 | } else {
400 | let promise = self.eventLoop.makePromise(of: Void.self)
401 | self.eventLoop.execute { self._close0().cascade(to: promise) }
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
402 | return promise.futureResult
403 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:429:13: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
427 |
428 | return pruningCancellationPromise.futureResult.flatMap {
429 | self.available.map {
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
430 | $0.connection.close()
431 | }.flatten(on: self.eventLoop)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:433:13: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
431 | }.flatten(on: self.eventLoop)
432 | }.map {
433 | self.activeConnections = 0
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
434 | self.available.removeAll()
435 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:442:38: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
440 | self.eventLoop.makeSucceededFuture((self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count))
441 | } else {
442 | self.eventLoop.submit { (self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count) }
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
443 | }
444 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:340:21: warning: capture of 'self' with non-sendable type 'EventLoopGroupConnectionPool<Source>' in a '@Sendable' closure
20 | /// }
21 | /// ```
22 | public final class EventLoopGroupConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopGroupConnectionPool' does not conform to the 'Sendable' protocol
23 | /// Creates new connections when needed. See ``ConnectionPoolSource``.
24 | public let source: Source
:
338 | guard !self.didShutdown else {
339 | DispatchQueue.global().async {
340 | self.logger.warning("Connection pool can not be shut down more than once.")
| `- warning: capture of 'self' with non-sendable type 'EventLoopGroupConnectionPool<Source>' in a '@Sendable' closure
341 | callback(ConnectionPoolError.shutdown)
342 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:341:21: warning: capture of 'callback' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
339 | DispatchQueue.global().async {
340 | self.logger.warning("Connection pool can not be shut down more than once.")
341 | callback(ConnectionPoolError.shutdown)
| |- warning: capture of 'callback' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
342 | }
343 | return false
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:367:21: warning: mutation of captured var 'outcome' in concurrently-executing code
365 | pool.close().whenComplete { result in
366 | shutdownQueue.async {
367 | outcome = outcome.flatMap { result }
| `- warning: mutation of captured var 'outcome' in concurrently-executing code
368 | shutdownGroup.leave()
369 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:367:31: warning: reference to captured var 'outcome' in concurrently-executing code
365 | pool.close().whenComplete { result in
366 | shutdownQueue.async {
367 | outcome = outcome.flatMap { result }
| `- warning: reference to captured var 'outcome' in concurrently-executing code
368 | shutdownGroup.leave()
369 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoop/EventLoop+Concurrency.swift:22:21: warning: type 'Value' does not conform to the 'Sendable' protocol
17 | @available(*, deprecated, renamed: "makeFutureWithTask(_:)")
18 | @inlinable
19 | public func performWithTask<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
20 | _ body: @escaping @Sendable () async throws -> Value
21 | ) -> EventLoopFuture<Value> {
22 | return self.makeFutureWithTask(body)
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
23 | }
24 | }
[580/586] Compiling AsyncKit EventLoopGroupConnectionPool.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:184:48: warning: type 'Result' does not conform to the 'Sendable' protocol
178 | /// - closure: Callback that accepts the pooled connection.
179 | /// - Returns: A future containing the result of the closure.
180 | public func withConnection<Result>(
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
181 | logger: Logger,
182 | _ closure: @escaping (Source.Connection) -> EventLoopFuture<Result>
183 | ) -> EventLoopFuture<Result> {
184 | self.requestConnection(logger: logger).flatMap { conn in
| `- warning: type 'Result' does not conform to the 'Sendable' protocol
185 | closure(conn).always { _ in
186 | self.releaseConnection(conn, logger: logger)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:185:13: warning: capture of 'closure' with non-sendable type '(Source.Connection) -> EventLoopFuture<Result>' in a '@Sendable' closure
183 | ) -> EventLoopFuture<Result> {
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
| |- warning: capture of 'closure' with non-sendable type '(Source.Connection) -> EventLoopFuture<Result>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
186 | self.releaseConnection(conn, logger: logger)
187 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:186:17: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
186 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:186:17: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
186 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:186:40: warning: capture of 'conn' with non-sendable type 'Source.Connection' in a '@Sendable' closure
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
186 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of 'conn' with non-sendable type 'Source.Connection' in a '@Sendable' closure
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:231:79: warning: type 'Source.Connection' does not conform to the 'Sendable' protocol
229 | } else {
230 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
231 | self.eventLoop.execute { self._requestConnection0(logger: logger).cascade(to: promise) }
| `- warning: type 'Source.Connection' does not conform to the 'Sendable' protocol
232 | return promise.futureResult
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:231:38: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
229 | } else {
230 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
231 | self.eventLoop.execute { self._requestConnection0(logger: logger).cascade(to: promise) }
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
232 | return promise.futureResult
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:248:39: warning: type 'Source.Connection' does not conform to the 'Sendable' protocol
246 | if !conn.connection.isClosed {
247 | logger.trace("Using available connection")
248 | return self.eventLoop.makeSucceededFuture(conn.connection)
| `- warning: type 'Source.Connection' does not conform to the 'Sendable' protocol
249 | } else {
250 | logger.debug("Pruning defunct connection")
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:260:19: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>?' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
258 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
259 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
260 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>?' in a '@Sendable' closure
261 | logger.trace("Waiter already removed when timeout task fired", metadata: ["waiter": .stringConvertible(waiterId)])
262 | return
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:278:13: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>?' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
276 | logger.trace("Connection request completed", metadata: ["waiter": .stringConvertible(waiterId)])
277 | timeoutTask.cancel()
278 | self?.waiters.removeValue(forKey: waiterId)
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>?' in a '@Sendable' closure
279 | }
280 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:288:17: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
286 | // On success, "release" the new connection to the pool and let the waitlist logic take over
287 | logger.trace("New connection successful, servicing waitlist")
288 | self._releaseConnection0($0, logger: logger)
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
289 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
290 | self?.activeConnections -= 1
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:290:17: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>?' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
288 | self._releaseConnection0($0, logger: logger)
289 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
290 | self?.activeConnections -= 1
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>?' in a '@Sendable' closure
291 | logger.error("Opening new connection for pool failed", metadata: ["error": .string(String(reflecting: error))])
292 | return eventLoop.makeFailedFuture(error)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:328:38: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
326 | self._releaseConnection0(connection, logger: logger)
327 | } else {
328 | self.eventLoop.execute { self._releaseConnection0(connection, logger: logger) }
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
329 | }
330 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:328:63: warning: capture of 'connection' with non-sendable type 'Source.Connection' in a '@Sendable' closure
326 | self._releaseConnection0(connection, logger: logger)
327 | } else {
328 | self.eventLoop.execute { self._releaseConnection0(connection, logger: logger) }
| `- warning: capture of 'connection' with non-sendable type 'Source.Connection' in a '@Sendable' closure
329 | }
330 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:384:67: warning: type 'Source.Connection' does not conform to the 'Sendable' protocol
382 | logger.debug("Servicing connection waitlist item", metadata: ["waiter": .stringConvertible(waiter.key)])
383 | waiter.value.timeoutTask.cancel()
384 | self._requestConnection0(logger: waiter.value.logger).cascade(to: waiter.value.promise)
| `- warning: type 'Source.Connection' does not conform to the 'Sendable' protocol
385 | }
386 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:363:33: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
361 | var prunedConnections: Set<ObjectIdentifier> = []
362 |
363 | for conninfo in self.available where !conninfo.connection.isClosed {
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
364 | if conninfo.lastUse + self.maxIdleTimeBeforePruning < .now() {
365 | self.logger.debug("Pruning idle connection.")
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:401:38: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
399 | } else {
400 | let promise = self.eventLoop.makePromise(of: Void.self)
401 | self.eventLoop.execute { self._close0().cascade(to: promise) }
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
402 | return promise.futureResult
403 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:429:13: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
427 |
428 | return pruningCancellationPromise.futureResult.flatMap {
429 | self.available.map {
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
430 | $0.connection.close()
431 | }.flatten(on: self.eventLoop)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:433:13: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
431 | }.flatten(on: self.eventLoop)
432 | }.map {
433 | self.activeConnections = 0
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
434 | self.available.removeAll()
435 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:442:38: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
440 | self.eventLoop.makeSucceededFuture((self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count))
441 | } else {
442 | self.eventLoop.submit { (self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count) }
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
443 | }
444 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:340:21: warning: capture of 'self' with non-sendable type 'EventLoopGroupConnectionPool<Source>' in a '@Sendable' closure
20 | /// }
21 | /// ```
22 | public final class EventLoopGroupConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopGroupConnectionPool' does not conform to the 'Sendable' protocol
23 | /// Creates new connections when needed. See ``ConnectionPoolSource``.
24 | public let source: Source
:
338 | guard !self.didShutdown else {
339 | DispatchQueue.global().async {
340 | self.logger.warning("Connection pool can not be shut down more than once.")
| `- warning: capture of 'self' with non-sendable type 'EventLoopGroupConnectionPool<Source>' in a '@Sendable' closure
341 | callback(ConnectionPoolError.shutdown)
342 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:341:21: warning: capture of 'callback' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
339 | DispatchQueue.global().async {
340 | self.logger.warning("Connection pool can not be shut down more than once.")
341 | callback(ConnectionPoolError.shutdown)
| |- warning: capture of 'callback' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
342 | }
343 | return false
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:367:21: warning: mutation of captured var 'outcome' in concurrently-executing code
365 | pool.close().whenComplete { result in
366 | shutdownQueue.async {
367 | outcome = outcome.flatMap { result }
| `- warning: mutation of captured var 'outcome' in concurrently-executing code
368 | shutdownGroup.leave()
369 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:367:31: warning: reference to captured var 'outcome' in concurrently-executing code
365 | pool.close().whenComplete { result in
366 | shutdownQueue.async {
367 | outcome = outcome.flatMap { result }
| `- warning: reference to captured var 'outcome' in concurrently-executing code
368 | shutdownGroup.leave()
369 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoop/EventLoop+Concurrency.swift:22:21: warning: type 'Value' does not conform to the 'Sendable' protocol
17 | @available(*, deprecated, renamed: "makeFutureWithTask(_:)")
18 | @inlinable
19 | public func performWithTask<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
20 | _ body: @escaping @Sendable () async throws -> Value
21 | ) -> EventLoopFuture<Value> {
22 | return self.makeFutureWithTask(body)
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
23 | }
24 | }
[581/586] Compiling AsyncKit EventLoop+Concurrency.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:184:48: warning: type 'Result' does not conform to the 'Sendable' protocol
178 | /// - closure: Callback that accepts the pooled connection.
179 | /// - Returns: A future containing the result of the closure.
180 | public func withConnection<Result>(
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
181 | logger: Logger,
182 | _ closure: @escaping (Source.Connection) -> EventLoopFuture<Result>
183 | ) -> EventLoopFuture<Result> {
184 | self.requestConnection(logger: logger).flatMap { conn in
| `- warning: type 'Result' does not conform to the 'Sendable' protocol
185 | closure(conn).always { _ in
186 | self.releaseConnection(conn, logger: logger)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:185:13: warning: capture of 'closure' with non-sendable type '(Source.Connection) -> EventLoopFuture<Result>' in a '@Sendable' closure
183 | ) -> EventLoopFuture<Result> {
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
| |- warning: capture of 'closure' with non-sendable type '(Source.Connection) -> EventLoopFuture<Result>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
186 | self.releaseConnection(conn, logger: logger)
187 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:186:17: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
186 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:186:17: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
186 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:186:40: warning: capture of 'conn' with non-sendable type 'Source.Connection' in a '@Sendable' closure
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
186 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of 'conn' with non-sendable type 'Source.Connection' in a '@Sendable' closure
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:231:79: warning: type 'Source.Connection' does not conform to the 'Sendable' protocol
229 | } else {
230 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
231 | self.eventLoop.execute { self._requestConnection0(logger: logger).cascade(to: promise) }
| `- warning: type 'Source.Connection' does not conform to the 'Sendable' protocol
232 | return promise.futureResult
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:231:38: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
229 | } else {
230 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
231 | self.eventLoop.execute { self._requestConnection0(logger: logger).cascade(to: promise) }
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
232 | return promise.futureResult
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:248:39: warning: type 'Source.Connection' does not conform to the 'Sendable' protocol
246 | if !conn.connection.isClosed {
247 | logger.trace("Using available connection")
248 | return self.eventLoop.makeSucceededFuture(conn.connection)
| `- warning: type 'Source.Connection' does not conform to the 'Sendable' protocol
249 | } else {
250 | logger.debug("Pruning defunct connection")
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:260:19: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>?' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
258 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
259 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
260 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>?' in a '@Sendable' closure
261 | logger.trace("Waiter already removed when timeout task fired", metadata: ["waiter": .stringConvertible(waiterId)])
262 | return
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:278:13: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>?' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
276 | logger.trace("Connection request completed", metadata: ["waiter": .stringConvertible(waiterId)])
277 | timeoutTask.cancel()
278 | self?.waiters.removeValue(forKey: waiterId)
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>?' in a '@Sendable' closure
279 | }
280 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:288:17: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
286 | // On success, "release" the new connection to the pool and let the waitlist logic take over
287 | logger.trace("New connection successful, servicing waitlist")
288 | self._releaseConnection0($0, logger: logger)
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
289 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
290 | self?.activeConnections -= 1
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:290:17: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>?' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
288 | self._releaseConnection0($0, logger: logger)
289 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
290 | self?.activeConnections -= 1
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>?' in a '@Sendable' closure
291 | logger.error("Opening new connection for pool failed", metadata: ["error": .string(String(reflecting: error))])
292 | return eventLoop.makeFailedFuture(error)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:328:38: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
326 | self._releaseConnection0(connection, logger: logger)
327 | } else {
328 | self.eventLoop.execute { self._releaseConnection0(connection, logger: logger) }
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
329 | }
330 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:328:63: warning: capture of 'connection' with non-sendable type 'Source.Connection' in a '@Sendable' closure
326 | self._releaseConnection0(connection, logger: logger)
327 | } else {
328 | self.eventLoop.execute { self._releaseConnection0(connection, logger: logger) }
| `- warning: capture of 'connection' with non-sendable type 'Source.Connection' in a '@Sendable' closure
329 | }
330 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:384:67: warning: type 'Source.Connection' does not conform to the 'Sendable' protocol
382 | logger.debug("Servicing connection waitlist item", metadata: ["waiter": .stringConvertible(waiter.key)])
383 | waiter.value.timeoutTask.cancel()
384 | self._requestConnection0(logger: waiter.value.logger).cascade(to: waiter.value.promise)
| `- warning: type 'Source.Connection' does not conform to the 'Sendable' protocol
385 | }
386 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:363:33: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
361 | var prunedConnections: Set<ObjectIdentifier> = []
362 |
363 | for conninfo in self.available where !conninfo.connection.isClosed {
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
364 | if conninfo.lastUse + self.maxIdleTimeBeforePruning < .now() {
365 | self.logger.debug("Pruning idle connection.")
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:401:38: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
399 | } else {
400 | let promise = self.eventLoop.makePromise(of: Void.self)
401 | self.eventLoop.execute { self._close0().cascade(to: promise) }
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
402 | return promise.futureResult
403 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:429:13: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
427 |
428 | return pruningCancellationPromise.futureResult.flatMap {
429 | self.available.map {
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
430 | $0.connection.close()
431 | }.flatten(on: self.eventLoop)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:433:13: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
431 | }.flatten(on: self.eventLoop)
432 | }.map {
433 | self.activeConnections = 0
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
434 | self.available.removeAll()
435 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:442:38: warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
22 | /// }
23 | /// ```
24 | public final class EventLoopConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopConnectionPool' does not conform to the 'Sendable' protocol
25 | private typealias WaitlistItem = (logger: Logger, promise: EventLoopPromise<Source.Connection>, timeoutTask: Scheduled<Void>)
26 |
:
440 | self.eventLoop.makeSucceededFuture((self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count))
441 | } else {
442 | self.eventLoop.submit { (self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count) }
| `- warning: capture of 'self' with non-sendable type 'EventLoopConnectionPool<Source>' in a '@Sendable' closure
443 | }
444 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:340:21: warning: capture of 'self' with non-sendable type 'EventLoopGroupConnectionPool<Source>' in a '@Sendable' closure
20 | /// }
21 | /// ```
22 | public final class EventLoopGroupConnectionPool<Source> where Source: ConnectionPoolSource {
| `- note: generic class 'EventLoopGroupConnectionPool' does not conform to the 'Sendable' protocol
23 | /// Creates new connections when needed. See ``ConnectionPoolSource``.
24 | public let source: Source
:
338 | guard !self.didShutdown else {
339 | DispatchQueue.global().async {
340 | self.logger.warning("Connection pool can not be shut down more than once.")
| `- warning: capture of 'self' with non-sendable type 'EventLoopGroupConnectionPool<Source>' in a '@Sendable' closure
341 | callback(ConnectionPoolError.shutdown)
342 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:341:21: warning: capture of 'callback' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
339 | DispatchQueue.global().async {
340 | self.logger.warning("Connection pool can not be shut down more than once.")
341 | callback(ConnectionPoolError.shutdown)
| |- warning: capture of 'callback' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
342 | }
343 | return false
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:367:21: warning: mutation of captured var 'outcome' in concurrently-executing code
365 | pool.close().whenComplete { result in
366 | shutdownQueue.async {
367 | outcome = outcome.flatMap { result }
| `- warning: mutation of captured var 'outcome' in concurrently-executing code
368 | shutdownGroup.leave()
369 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:367:31: warning: reference to captured var 'outcome' in concurrently-executing code
365 | pool.close().whenComplete { result in
366 | shutdownQueue.async {
367 | outcome = outcome.flatMap { result }
| `- warning: reference to captured var 'outcome' in concurrently-executing code
368 | shutdownGroup.leave()
369 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoop/EventLoop+Concurrency.swift:22:21: warning: type 'Value' does not conform to the 'Sendable' protocol
17 | @available(*, deprecated, renamed: "makeFutureWithTask(_:)")
18 | @inlinable
19 | public func performWithTask<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
20 | _ body: @escaping @Sendable () async throws -> Value
21 | ) -> EventLoopFuture<Value> {
22 | return self.makeFutureWithTask(body)
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
23 | }
24 | }
[582/586] Compiling AsyncKit EventLoop+Flatten.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoop/EventLoop+Flatten.swift:12:35: warning: type 'T' does not conform to the 'Sendable' protocol
9 | /// - Parameter futures: An array of futures to flatten into a single `EventLoopFuture`.
10 | /// - Returns: A new `EventLoopFuture` with all the resolved values of the input collection.
11 | public func flatten<T>(_ futures: [EventLoopFuture<T>]) -> EventLoopFuture<[T]> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 | return EventLoopFuture<T>.whenAllSucceed(futures, on: self)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoop/EventLoop+Future.swift:20:27: warning: type 'T' does not conform to the 'Sendable' protocol
17 | /// - Parameter value: The value that the future will wrap.
18 | /// - Returns: The succeeded future.
19 | public func future<T>(_ value: T) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
20 | return self.any().makeSucceededFuture(value)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoop/EventLoop+Future.swift:42:17: warning: type 'T' does not conform to the 'Sendable' protocol
38 | /// - Parameter result: The result that the future will wrap.
39 | /// - Returns: The succeeded or failed future.
40 | public func future<T>(result: Result<T, any Error>) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
41 | let promise: EventLoopPromise<T> = self.any().makePromise()
42 | promise.completeWith(result)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
43 | return promise.futureResult
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoop/EventLoopGroup+Concurrency.swift:28:27: warning: type 'Value' does not conform to the 'Sendable' protocol
23 |
24 | @inlinable
25 | public func makeFutureWithTask<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
26 | _ body: @escaping @Sendable () async throws -> Value
27 | ) -> EventLoopFuture<Value> {
28 | return self.any().makeFutureWithTask(body)
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
29 | }
30 | }
[583/586] Compiling AsyncKit EventLoop+Future.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoop/EventLoop+Flatten.swift:12:35: warning: type 'T' does not conform to the 'Sendable' protocol
9 | /// - Parameter futures: An array of futures to flatten into a single `EventLoopFuture`.
10 | /// - Returns: A new `EventLoopFuture` with all the resolved values of the input collection.
11 | public func flatten<T>(_ futures: [EventLoopFuture<T>]) -> EventLoopFuture<[T]> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 | return EventLoopFuture<T>.whenAllSucceed(futures, on: self)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoop/EventLoop+Future.swift:20:27: warning: type 'T' does not conform to the 'Sendable' protocol
17 | /// - Parameter value: The value that the future will wrap.
18 | /// - Returns: The succeeded future.
19 | public func future<T>(_ value: T) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
20 | return self.any().makeSucceededFuture(value)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoop/EventLoop+Future.swift:42:17: warning: type 'T' does not conform to the 'Sendable' protocol
38 | /// - Parameter result: The result that the future will wrap.
39 | /// - Returns: The succeeded or failed future.
40 | public func future<T>(result: Result<T, any Error>) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
41 | let promise: EventLoopPromise<T> = self.any().makePromise()
42 | promise.completeWith(result)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
43 | return promise.futureResult
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoop/EventLoopGroup+Concurrency.swift:28:27: warning: type 'Value' does not conform to the 'Sendable' protocol
23 |
24 | @inlinable
25 | public func makeFutureWithTask<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
26 | _ body: @escaping @Sendable () async throws -> Value
27 | ) -> EventLoopFuture<Value> {
28 | return self.any().makeFutureWithTask(body)
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
29 | }
30 | }
[584/586] Compiling AsyncKit EventLoopGroup+Concurrency.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoop/EventLoop+Flatten.swift:12:35: warning: type 'T' does not conform to the 'Sendable' protocol
9 | /// - Parameter futures: An array of futures to flatten into a single `EventLoopFuture`.
10 | /// - Returns: A new `EventLoopFuture` with all the resolved values of the input collection.
11 | public func flatten<T>(_ futures: [EventLoopFuture<T>]) -> EventLoopFuture<[T]> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 | return EventLoopFuture<T>.whenAllSucceed(futures, on: self)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoop/EventLoop+Future.swift:20:27: warning: type 'T' does not conform to the 'Sendable' protocol
17 | /// - Parameter value: The value that the future will wrap.
18 | /// - Returns: The succeeded future.
19 | public func future<T>(_ value: T) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
20 | return self.any().makeSucceededFuture(value)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoop/EventLoop+Future.swift:42:17: warning: type 'T' does not conform to the 'Sendable' protocol
38 | /// - Parameter result: The result that the future will wrap.
39 | /// - Returns: The succeeded or failed future.
40 | public func future<T>(result: Result<T, any Error>) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
41 | let promise: EventLoopPromise<T> = self.any().makePromise()
42 | promise.completeWith(result)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
43 | return promise.futureResult
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoop/EventLoopGroup+Concurrency.swift:28:27: warning: type 'Value' does not conform to the 'Sendable' protocol
23 |
24 | @inlinable
25 | public func makeFutureWithTask<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
26 | _ body: @escaping @Sendable () async throws -> Value
27 | ) -> EventLoopFuture<Value> {
28 | return self.any().makeFutureWithTask(body)
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
29 | }
30 | }
[585/586] Compiling AsyncKit Future+Collection.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:19:34: warning: capture of 'transform' with non-sendable type '(Value.Element) -> Result' in a '@Sendable' closure
17 | _ transform: @escaping (_ element: Value.Element) -> Result
18 | ) -> EventLoopFuture<[Result]> {
19 | return self.map { $0.map(transform) }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> Result' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:34:48: warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, Result>' in a '@Sendable' closure
32 | _ keyPath: KeyPath<Value.Element, Result>
33 | ) -> EventLoopFuture<[Result]> {
34 | return self.map { $0.map { $0[keyPath: keyPath] } }
| `- warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, Result>' in a '@Sendable' closure
35 | }
36 |
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:34:48: warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, Result>' in an isolated closure; this is an error in the Swift 6 language mode
32 | _ keyPath: KeyPath<Value.Element, Result>
33 | ) -> EventLoopFuture<[Result]> {
34 | return self.map { $0.map { $0[keyPath: keyPath] } }
| `- warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, Result>' in an isolated closure; this is an error in the Swift 6 language mode
35 | }
36 |
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:52:41: warning: capture of 'transform' with non-sendable type '(Value.Element) -> Result?' in a '@Sendable' closure
50 | _ transform: @escaping (_ element: Value.Element) -> Result?
51 | ) -> EventLoopFuture<[Result]> {
52 | return self.map { $0.compactMap(transform) }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> Result?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:67:55: warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, Result?>' in a '@Sendable' closure
65 | _ keyPath: KeyPath<Value.Element, Result?>
66 | ) -> EventLoopFuture<[Result]> {
67 | return self.map { $0.compactMap { $0[keyPath: keyPath] } }
| `- warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, Result?>' in a '@Sendable' closure
68 | }
69 |
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:67:55: warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, Result?>' in an isolated closure; this is an error in the Swift 6 language mode
65 | _ keyPath: KeyPath<Value.Element, Result?>
66 | ) -> EventLoopFuture<[Result]> {
67 | return self.map { $0.compactMap { $0[keyPath: keyPath] } }
| `- warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, Result?>' in an isolated closure; this is an error in the Swift 6 language mode
68 | }
69 |
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:84:38: warning: capture of 'transform' with non-sendable type '(Value.Element) -> ResultSegment' in a '@Sendable' closure
82 | _ transform: @escaping (_ element: Value.Element) -> ResultSegment
83 | ) -> EventLoopFuture<[ResultSegment.Element]> {
84 | return self.map { $0.flatMap(transform) }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> ResultSegment' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
85 | }
86 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:101:52: warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, ResultSegment>' in a '@Sendable' closure
99 | _ keyPath: KeyPath<Value.Element, ResultSegment>
100 | ) -> EventLoopFuture<[ResultSegment.Element]> {
101 | return self.map { $0.flatMap { $0[keyPath: keyPath] } }
| `- warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, ResultSegment>' in a '@Sendable' closure
102 | }
103 |
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:101:52: warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, ResultSegment>' in an isolated closure; this is an error in the Swift 6 language mode
99 | _ keyPath: KeyPath<Value.Element, ResultSegment>
100 | ) -> EventLoopFuture<[ResultSegment.Element]> {
101 | return self.map { $0.flatMap { $0[keyPath: keyPath] } }
| `- warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, ResultSegment>' in an isolated closure; this is an error in the Swift 6 language mode
102 | }
103 |
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:120:14: warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
114 | /// - returns: A new `EventLoopFuture` that wraps the results
115 | /// of all the `EventLoopFuture`s returned from the closure.
116 | public func flatMapEach<Result>(
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
117 | on eventLoop: any EventLoop,
118 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>
119 | ) -> EventLoopFuture<[Result]> {
120 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { $0.append($1) } }
| `- warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
121 | }
122 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:120:25: warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
114 | /// - returns: A new `EventLoopFuture` that wraps the results
115 | /// of all the `EventLoopFuture`s returned from the closure.
116 | public func flatMapEach<Result>(
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
117 | on eventLoop: any EventLoop,
118 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>
119 | ) -> EventLoopFuture<[Result]> {
120 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { $0.append($1) } }
| `- warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
121 | }
122 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:120:25: warning: type 'Result' does not conform to the 'Sendable' protocol
114 | /// - returns: A new `EventLoopFuture` that wraps the results
115 | /// of all the `EventLoopFuture`s returned from the closure.
116 | public func flatMapEach<Result>(
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
117 | on eventLoop: any EventLoop,
118 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>
119 | ) -> EventLoopFuture<[Result]> {
120 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { $0.append($1) } }
| `- warning: type 'Result' does not conform to the 'Sendable' protocol
121 | }
122 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:120:49: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result>' in a '@Sendable' closure
118 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>
119 | ) -> EventLoopFuture<[Result]> {
120 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { $0.append($1) } }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
121 | }
122 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:140:46: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Void>' in a '@Sendable' closure
138 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Void>
139 | ) -> EventLoopFuture<Void> {
140 | self.flatMap { .andAllSucceed($0.map(transform), on: eventLoop) }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Void>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
141 | }
142 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:159:14: warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
153 | /// - returns: A new `EventLoopFuture` that wraps the non-nil results
154 | /// of all the `EventLoopFuture`s returned from the closure.
155 | public func flatMapEachCompact<Result>(
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
156 | on eventLoop: any EventLoop,
157 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>
158 | ) -> EventLoopFuture<[Result]> {
159 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { res, elem in elem.map { res.append($0) } } }
| `- warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:159:25: warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
153 | /// - returns: A new `EventLoopFuture` that wraps the non-nil results
154 | /// of all the `EventLoopFuture`s returned from the closure.
155 | public func flatMapEachCompact<Result>(
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
156 | on eventLoop: any EventLoop,
157 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>
158 | ) -> EventLoopFuture<[Result]> {
159 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { res, elem in elem.map { res.append($0) } } }
| `- warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:159:25: warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
153 | /// - returns: A new `EventLoopFuture` that wraps the non-nil results
154 | /// of all the `EventLoopFuture`s returned from the closure.
155 | public func flatMapEachCompact<Result>(
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
156 | on eventLoop: any EventLoop,
157 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>
158 | ) -> EventLoopFuture<[Result]> {
159 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { res, elem in elem.map { res.append($0) } } }
| `- warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:159:49: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result?>' in a '@Sendable' closure
157 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>
158 | ) -> EventLoopFuture<[Result]> {
159 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { res, elem in elem.map { res.append($0) } } }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result?>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:181:37: warning: capture of 'transform' with non-sendable type '(Value.Element) throws -> Result' in a '@Sendable' closure
179 | ) -> EventLoopFuture<[Result]> {
180 | return self.flatMapThrowing { sequence -> [Result] in
181 | return try sequence.map(transform)
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) throws -> Result' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
182 | }
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:203:44: warning: capture of 'transform' with non-sendable type '(Value.Element) throws -> Result?' in a '@Sendable' closure
201 | ) -> EventLoopFuture<[Result]> {
202 | return self.flatMapThrowing { sequence -> [Result] in
203 | return try sequence.compactMap(transform)
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) throws -> Result?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
204 | }
205 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:222:31: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result>' in a '@Sendable' closure
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
222 | fut.flatMap { transform(elem).map { results.append($0) } }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
223 | }
224 | }.transform(to: results)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:222:53: warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
215 | ///
216 | /// Neither of these are provided by the original version of the method.
217 | public func sequencedFlatMapEach<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>) -> EventLoopFuture<[Result]> {
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
218 | var results: [Result] = []
219 |
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
222 | fut.flatMap { transform(elem).map { results.append($0) } }
| `- warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
223 | }
224 | }.transform(to: results)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:222:31: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result>' in an isolated closure; this is an error in the Swift 6 language mode
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
222 | fut.flatMap { transform(elem).map { results.append($0) } }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result>' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
223 | }
224 | }.transform(to: results)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:222:53: warning: capture of 'results' with non-sendable type '[Result]' in an isolated closure; this is an error in the Swift 6 language mode
215 | ///
216 | /// Neither of these are provided by the original version of the method.
217 | public func sequencedFlatMapEach<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>) -> EventLoopFuture<[Result]> {
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
218 | var results: [Result] = []
219 |
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
222 | fut.flatMap { transform(elem).map { results.append($0) } }
| `- warning: capture of 'results' with non-sendable type '[Result]' in an isolated closure; this is an error in the Swift 6 language mode
223 | }
224 | }.transform(to: results)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:222:31: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result>' in a '@Sendable' closure
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
222 | fut.flatMap { transform(elem).map { results.append($0) } }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
223 | }
224 | }.transform(to: results)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:222:41: warning: capture of 'elem' with non-sendable type 'Value.Element' in a '@Sendable' closure
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
222 | fut.flatMap { transform(elem).map { results.append($0) } }
| `- warning: capture of 'elem' with non-sendable type 'Value.Element' in a '@Sendable' closure
223 | }
224 | }.transform(to: results)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:222:53: warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
215 | ///
216 | /// Neither of these are provided by the original version of the method.
217 | public func sequencedFlatMapEach<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>) -> EventLoopFuture<[Result]> {
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
218 | var results: [Result] = []
219 |
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
222 | fut.flatMap { transform(elem).map { results.append($0) } }
| `- warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
223 | }
224 | }.transform(to: results)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:222:53: warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
215 | ///
216 | /// Neither of these are provided by the original version of the method.
217 | public func sequencedFlatMapEach<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>) -> EventLoopFuture<[Result]> {
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
218 | var results: [Result] = []
219 |
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
222 | fut.flatMap { transform(elem).map { results.append($0) } }
| `- warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
223 | }
224 | }.transform(to: results)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:222:53: warning: mutation of captured var 'results' in concurrently-executing code
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
222 | fut.flatMap { transform(elem).map { results.append($0) } }
| `- warning: mutation of captured var 'results' in concurrently-executing code
223 | }
224 | }.transform(to: results)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:232:31: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Void>' in a '@Sendable' closure
230 | return self.flatMap {
231 | $0.reduce(self.eventLoop.future()) { fut, elem in
232 | fut.flatMap { transform(elem) }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Void>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
233 | }
234 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:232:31: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Void>' in an isolated closure; this is an error in the Swift 6 language mode
230 | return self.flatMap {
231 | $0.reduce(self.eventLoop.future()) { fut, elem in
232 | fut.flatMap { transform(elem) }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Void>' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
233 | }
234 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:232:31: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Void>' in a '@Sendable' closure
230 | return self.flatMap {
231 | $0.reduce(self.eventLoop.future()) { fut, elem in
232 | fut.flatMap { transform(elem) }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Void>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
233 | }
234 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:232:41: warning: capture of 'elem' with non-sendable type 'Value.Element' in a '@Sendable' closure
230 | return self.flatMap {
231 | $0.reduce(self.eventLoop.future()) { fut, elem in
232 | fut.flatMap { transform(elem) }
| `- warning: capture of 'elem' with non-sendable type 'Value.Element' in a '@Sendable' closure
233 | }
234 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:245:31: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result?>' in a '@Sendable' closure
243 | return self.flatMap {
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result?>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
246 | $0.map { results.append($0) }
247 | } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:246:30: warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
238 | /// by allowing result values to be `nil`. Such results are not included in the
239 | /// output array.
240 | public func sequencedFlatMapEachCompact<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>) -> EventLoopFuture<[Result]> {
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
241 | var results: [Result] = []
242 |
:
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
246 | $0.map { results.append($0) }
| `- warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
247 | } }
248 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:245:31: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result?>' in an isolated closure; this is an error in the Swift 6 language mode
243 | return self.flatMap {
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result?>' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
246 | $0.map { results.append($0) }
247 | } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:246:30: warning: capture of 'results' with non-sendable type '[Result]' in an isolated closure; this is an error in the Swift 6 language mode
238 | /// by allowing result values to be `nil`. Such results are not included in the
239 | /// output array.
240 | public func sequencedFlatMapEachCompact<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>) -> EventLoopFuture<[Result]> {
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
241 | var results: [Result] = []
242 |
:
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
246 | $0.map { results.append($0) }
| `- warning: capture of 'results' with non-sendable type '[Result]' in an isolated closure; this is an error in the Swift 6 language mode
247 | } }
248 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:245:31: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result?>' in a '@Sendable' closure
243 | return self.flatMap {
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result?>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
246 | $0.map { results.append($0) }
247 | } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:245:41: warning: capture of 'elem' with non-sendable type 'Value.Element' in a '@Sendable' closure
243 | return self.flatMap {
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
| `- warning: capture of 'elem' with non-sendable type 'Value.Element' in a '@Sendable' closure
246 | $0.map { results.append($0) }
247 | } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:246:30: warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
238 | /// by allowing result values to be `nil`. Such results are not included in the
239 | /// output array.
240 | public func sequencedFlatMapEachCompact<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>) -> EventLoopFuture<[Result]> {
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
241 | var results: [Result] = []
242 |
:
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
246 | $0.map { results.append($0) }
| `- warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
247 | } }
248 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:246:30: warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
238 | /// by allowing result values to be `nil`. Such results are not included in the
239 | /// output array.
240 | public func sequencedFlatMapEachCompact<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>) -> EventLoopFuture<[Result]> {
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
241 | var results: [Result] = []
242 |
:
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
246 | $0.map { results.append($0) }
| `- warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
247 | } }
248 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:246:30: warning: capture of 'results' with non-sendable type '[Result]' in an isolated closure; this is an error in the Swift 6 language mode
238 | /// by allowing result values to be `nil`. Such results are not included in the
239 | /// output array.
240 | public func sequencedFlatMapEachCompact<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>) -> EventLoopFuture<[Result]> {
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
241 | var results: [Result] = []
242 |
:
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
246 | $0.map { results.append($0) }
| `- warning: capture of 'results' with non-sendable type '[Result]' in an isolated closure; this is an error in the Swift 6 language mode
247 | } }
248 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:246:30: warning: mutation of captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
246 | $0.map { results.append($0) }
| `- warning: mutation of captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
247 | } }
248 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Conjunctions.swift:20:19: warning: type 'B' does not conform to the 'Sendable' protocol
14 | /// - Note: This is esssentially just a heterogenous version of `.whenAllSucceed()`.
15 | @inlinable
16 | public static func whenTheySucceed<A, B>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
17 | _ fA: EventLoopFuture<A>, _ fB: EventLoopFuture<B>,
18 | file: StaticString = #file, line: UInt = #line
19 | ) -> EventLoopFuture<(A, B)> where Value == (A, B) {
20 | return fA.and(fB)
| `- warning: type 'B' does not conform to the 'Sendable' protocol
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Conjunctions.swift:475:16: warning: type 'V' does not conform to the 'Sendable' protocol
472 | /// common implementation to simplify the already absurd tuple element count overloads.
473 | @inlinable
474 | internal/*private*/ func whenTheySucceed0<V>(_ future: EventLoopFuture<V>, _ put: @escaping (V) -> Void, _ check: @escaping (V) -> Value?) -> EventLoopPromise<Value> {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
475 | future.hop(to: self.futureResult.eventLoop).whenComplete {
| `- warning: type 'V' does not conform to the 'Sendable' protocol
476 | switch $0 {
477 | case .failure(let error):
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Conjunctions.swift:478:26: warning: type 'Value' does not conform to the 'Sendable' protocol
476 | switch $0 {
477 | case .failure(let error):
478 | self.completeWith(.failure(error))
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
479 | case .success(let value):
480 | if let output = check(value) {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Conjunctions.swift:481:30: warning: type 'Value' does not conform to the 'Sendable' protocol
479 | case .success(let value):
480 | if let output = check(value) {
481 | self.completeWith(.success(output))
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
482 | } else {
483 | put(value)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Conjunctions.swift:480:37: warning: capture of 'check' with non-sendable type '(V) -> Value?' in a '@Sendable' closure
478 | self.completeWith(.failure(error))
479 | case .success(let value):
480 | if let output = check(value) {
| |- warning: capture of 'check' with non-sendable type '(V) -> Value?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
481 | self.completeWith(.success(output))
482 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Conjunctions.swift:483:25: warning: capture of 'put' with non-sendable type '(V) -> Void' in a '@Sendable' closure
481 | self.completeWith(.success(output))
482 | } else {
483 | put(value)
| |- warning: capture of 'put' with non-sendable type '(V) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
484 | }
485 | }
[586/586] Compiling AsyncKit Future+Conjunctions.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:19:34: warning: capture of 'transform' with non-sendable type '(Value.Element) -> Result' in a '@Sendable' closure
17 | _ transform: @escaping (_ element: Value.Element) -> Result
18 | ) -> EventLoopFuture<[Result]> {
19 | return self.map { $0.map(transform) }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> Result' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:34:48: warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, Result>' in a '@Sendable' closure
32 | _ keyPath: KeyPath<Value.Element, Result>
33 | ) -> EventLoopFuture<[Result]> {
34 | return self.map { $0.map { $0[keyPath: keyPath] } }
| `- warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, Result>' in a '@Sendable' closure
35 | }
36 |
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:34:48: warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, Result>' in an isolated closure; this is an error in the Swift 6 language mode
32 | _ keyPath: KeyPath<Value.Element, Result>
33 | ) -> EventLoopFuture<[Result]> {
34 | return self.map { $0.map { $0[keyPath: keyPath] } }
| `- warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, Result>' in an isolated closure; this is an error in the Swift 6 language mode
35 | }
36 |
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:52:41: warning: capture of 'transform' with non-sendable type '(Value.Element) -> Result?' in a '@Sendable' closure
50 | _ transform: @escaping (_ element: Value.Element) -> Result?
51 | ) -> EventLoopFuture<[Result]> {
52 | return self.map { $0.compactMap(transform) }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> Result?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:67:55: warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, Result?>' in a '@Sendable' closure
65 | _ keyPath: KeyPath<Value.Element, Result?>
66 | ) -> EventLoopFuture<[Result]> {
67 | return self.map { $0.compactMap { $0[keyPath: keyPath] } }
| `- warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, Result?>' in a '@Sendable' closure
68 | }
69 |
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:67:55: warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, Result?>' in an isolated closure; this is an error in the Swift 6 language mode
65 | _ keyPath: KeyPath<Value.Element, Result?>
66 | ) -> EventLoopFuture<[Result]> {
67 | return self.map { $0.compactMap { $0[keyPath: keyPath] } }
| `- warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, Result?>' in an isolated closure; this is an error in the Swift 6 language mode
68 | }
69 |
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:84:38: warning: capture of 'transform' with non-sendable type '(Value.Element) -> ResultSegment' in a '@Sendable' closure
82 | _ transform: @escaping (_ element: Value.Element) -> ResultSegment
83 | ) -> EventLoopFuture<[ResultSegment.Element]> {
84 | return self.map { $0.flatMap(transform) }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> ResultSegment' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
85 | }
86 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:101:52: warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, ResultSegment>' in a '@Sendable' closure
99 | _ keyPath: KeyPath<Value.Element, ResultSegment>
100 | ) -> EventLoopFuture<[ResultSegment.Element]> {
101 | return self.map { $0.flatMap { $0[keyPath: keyPath] } }
| `- warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, ResultSegment>' in a '@Sendable' closure
102 | }
103 |
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:101:52: warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, ResultSegment>' in an isolated closure; this is an error in the Swift 6 language mode
99 | _ keyPath: KeyPath<Value.Element, ResultSegment>
100 | ) -> EventLoopFuture<[ResultSegment.Element]> {
101 | return self.map { $0.flatMap { $0[keyPath: keyPath] } }
| `- warning: capture of 'keyPath' with non-sendable type 'KeyPath<Value.Element, ResultSegment>' in an isolated closure; this is an error in the Swift 6 language mode
102 | }
103 |
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:120:14: warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
114 | /// - returns: A new `EventLoopFuture` that wraps the results
115 | /// of all the `EventLoopFuture`s returned from the closure.
116 | public func flatMapEach<Result>(
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
117 | on eventLoop: any EventLoop,
118 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>
119 | ) -> EventLoopFuture<[Result]> {
120 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { $0.append($1) } }
| `- warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
121 | }
122 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:120:25: warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
114 | /// - returns: A new `EventLoopFuture` that wraps the results
115 | /// of all the `EventLoopFuture`s returned from the closure.
116 | public func flatMapEach<Result>(
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
117 | on eventLoop: any EventLoop,
118 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>
119 | ) -> EventLoopFuture<[Result]> {
120 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { $0.append($1) } }
| `- warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
121 | }
122 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:120:25: warning: type 'Result' does not conform to the 'Sendable' protocol
114 | /// - returns: A new `EventLoopFuture` that wraps the results
115 | /// of all the `EventLoopFuture`s returned from the closure.
116 | public func flatMapEach<Result>(
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
117 | on eventLoop: any EventLoop,
118 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>
119 | ) -> EventLoopFuture<[Result]> {
120 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { $0.append($1) } }
| `- warning: type 'Result' does not conform to the 'Sendable' protocol
121 | }
122 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:120:49: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result>' in a '@Sendable' closure
118 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>
119 | ) -> EventLoopFuture<[Result]> {
120 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { $0.append($1) } }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
121 | }
122 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:140:46: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Void>' in a '@Sendable' closure
138 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Void>
139 | ) -> EventLoopFuture<Void> {
140 | self.flatMap { .andAllSucceed($0.map(transform), on: eventLoop) }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Void>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
141 | }
142 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:159:14: warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
153 | /// - returns: A new `EventLoopFuture` that wraps the non-nil results
154 | /// of all the `EventLoopFuture`s returned from the closure.
155 | public func flatMapEachCompact<Result>(
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
156 | on eventLoop: any EventLoop,
157 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>
158 | ) -> EventLoopFuture<[Result]> {
159 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { res, elem in elem.map { res.append($0) } } }
| `- warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:159:25: warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
153 | /// - returns: A new `EventLoopFuture` that wraps the non-nil results
154 | /// of all the `EventLoopFuture`s returned from the closure.
155 | public func flatMapEachCompact<Result>(
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
156 | on eventLoop: any EventLoop,
157 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>
158 | ) -> EventLoopFuture<[Result]> {
159 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { res, elem in elem.map { res.append($0) } } }
| `- warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:159:25: warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
153 | /// - returns: A new `EventLoopFuture` that wraps the non-nil results
154 | /// of all the `EventLoopFuture`s returned from the closure.
155 | public func flatMapEachCompact<Result>(
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
156 | on eventLoop: any EventLoop,
157 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>
158 | ) -> EventLoopFuture<[Result]> {
159 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { res, elem in elem.map { res.append($0) } } }
| `- warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:159:49: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result?>' in a '@Sendable' closure
157 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>
158 | ) -> EventLoopFuture<[Result]> {
159 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { res, elem in elem.map { res.append($0) } } }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result?>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:181:37: warning: capture of 'transform' with non-sendable type '(Value.Element) throws -> Result' in a '@Sendable' closure
179 | ) -> EventLoopFuture<[Result]> {
180 | return self.flatMapThrowing { sequence -> [Result] in
181 | return try sequence.map(transform)
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) throws -> Result' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
182 | }
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:203:44: warning: capture of 'transform' with non-sendable type '(Value.Element) throws -> Result?' in a '@Sendable' closure
201 | ) -> EventLoopFuture<[Result]> {
202 | return self.flatMapThrowing { sequence -> [Result] in
203 | return try sequence.compactMap(transform)
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) throws -> Result?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
204 | }
205 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:222:31: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result>' in a '@Sendable' closure
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
222 | fut.flatMap { transform(elem).map { results.append($0) } }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
223 | }
224 | }.transform(to: results)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:222:53: warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
215 | ///
216 | /// Neither of these are provided by the original version of the method.
217 | public func sequencedFlatMapEach<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>) -> EventLoopFuture<[Result]> {
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
218 | var results: [Result] = []
219 |
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
222 | fut.flatMap { transform(elem).map { results.append($0) } }
| `- warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
223 | }
224 | }.transform(to: results)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:222:31: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result>' in an isolated closure; this is an error in the Swift 6 language mode
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
222 | fut.flatMap { transform(elem).map { results.append($0) } }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result>' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
223 | }
224 | }.transform(to: results)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:222:53: warning: capture of 'results' with non-sendable type '[Result]' in an isolated closure; this is an error in the Swift 6 language mode
215 | ///
216 | /// Neither of these are provided by the original version of the method.
217 | public func sequencedFlatMapEach<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>) -> EventLoopFuture<[Result]> {
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
218 | var results: [Result] = []
219 |
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
222 | fut.flatMap { transform(elem).map { results.append($0) } }
| `- warning: capture of 'results' with non-sendable type '[Result]' in an isolated closure; this is an error in the Swift 6 language mode
223 | }
224 | }.transform(to: results)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:222:31: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result>' in a '@Sendable' closure
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
222 | fut.flatMap { transform(elem).map { results.append($0) } }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
223 | }
224 | }.transform(to: results)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:222:41: warning: capture of 'elem' with non-sendable type 'Value.Element' in a '@Sendable' closure
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
222 | fut.flatMap { transform(elem).map { results.append($0) } }
| `- warning: capture of 'elem' with non-sendable type 'Value.Element' in a '@Sendable' closure
223 | }
224 | }.transform(to: results)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:222:53: warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
215 | ///
216 | /// Neither of these are provided by the original version of the method.
217 | public func sequencedFlatMapEach<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>) -> EventLoopFuture<[Result]> {
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
218 | var results: [Result] = []
219 |
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
222 | fut.flatMap { transform(elem).map { results.append($0) } }
| `- warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
223 | }
224 | }.transform(to: results)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:222:53: warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
215 | ///
216 | /// Neither of these are provided by the original version of the method.
217 | public func sequencedFlatMapEach<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>) -> EventLoopFuture<[Result]> {
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
218 | var results: [Result] = []
219 |
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
222 | fut.flatMap { transform(elem).map { results.append($0) } }
| `- warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
223 | }
224 | }.transform(to: results)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:222:53: warning: mutation of captured var 'results' in concurrently-executing code
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
222 | fut.flatMap { transform(elem).map { results.append($0) } }
| `- warning: mutation of captured var 'results' in concurrently-executing code
223 | }
224 | }.transform(to: results)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:232:31: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Void>' in a '@Sendable' closure
230 | return self.flatMap {
231 | $0.reduce(self.eventLoop.future()) { fut, elem in
232 | fut.flatMap { transform(elem) }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Void>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
233 | }
234 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:232:31: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Void>' in an isolated closure; this is an error in the Swift 6 language mode
230 | return self.flatMap {
231 | $0.reduce(self.eventLoop.future()) { fut, elem in
232 | fut.flatMap { transform(elem) }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Void>' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
233 | }
234 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:232:31: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Void>' in a '@Sendable' closure
230 | return self.flatMap {
231 | $0.reduce(self.eventLoop.future()) { fut, elem in
232 | fut.flatMap { transform(elem) }
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Void>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
233 | }
234 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:232:41: warning: capture of 'elem' with non-sendable type 'Value.Element' in a '@Sendable' closure
230 | return self.flatMap {
231 | $0.reduce(self.eventLoop.future()) { fut, elem in
232 | fut.flatMap { transform(elem) }
| `- warning: capture of 'elem' with non-sendable type 'Value.Element' in a '@Sendable' closure
233 | }
234 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:245:31: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result?>' in a '@Sendable' closure
243 | return self.flatMap {
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result?>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
246 | $0.map { results.append($0) }
247 | } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:246:30: warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
238 | /// by allowing result values to be `nil`. Such results are not included in the
239 | /// output array.
240 | public func sequencedFlatMapEachCompact<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>) -> EventLoopFuture<[Result]> {
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
241 | var results: [Result] = []
242 |
:
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
246 | $0.map { results.append($0) }
| `- warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
247 | } }
248 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:245:31: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result?>' in an isolated closure; this is an error in the Swift 6 language mode
243 | return self.flatMap {
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result?>' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
246 | $0.map { results.append($0) }
247 | } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:246:30: warning: capture of 'results' with non-sendable type '[Result]' in an isolated closure; this is an error in the Swift 6 language mode
238 | /// by allowing result values to be `nil`. Such results are not included in the
239 | /// output array.
240 | public func sequencedFlatMapEachCompact<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>) -> EventLoopFuture<[Result]> {
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
241 | var results: [Result] = []
242 |
:
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
246 | $0.map { results.append($0) }
| `- warning: capture of 'results' with non-sendable type '[Result]' in an isolated closure; this is an error in the Swift 6 language mode
247 | } }
248 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:245:31: warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result?>' in a '@Sendable' closure
243 | return self.flatMap {
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
| |- warning: capture of 'transform' with non-sendable type '(Value.Element) -> EventLoopFuture<Result?>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
246 | $0.map { results.append($0) }
247 | } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:245:41: warning: capture of 'elem' with non-sendable type 'Value.Element' in a '@Sendable' closure
243 | return self.flatMap {
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
| `- warning: capture of 'elem' with non-sendable type 'Value.Element' in a '@Sendable' closure
246 | $0.map { results.append($0) }
247 | } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:246:30: warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
238 | /// by allowing result values to be `nil`. Such results are not included in the
239 | /// output array.
240 | public func sequencedFlatMapEachCompact<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>) -> EventLoopFuture<[Result]> {
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
241 | var results: [Result] = []
242 |
:
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
246 | $0.map { results.append($0) }
| `- warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
247 | } }
248 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:246:30: warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
238 | /// by allowing result values to be `nil`. Such results are not included in the
239 | /// output array.
240 | public func sequencedFlatMapEachCompact<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>) -> EventLoopFuture<[Result]> {
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
241 | var results: [Result] = []
242 |
:
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
246 | $0.map { results.append($0) }
| `- warning: capture of 'results' with non-sendable type '[Result]' in a '@Sendable' closure
247 | } }
248 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:246:30: warning: capture of 'results' with non-sendable type '[Result]' in an isolated closure; this is an error in the Swift 6 language mode
238 | /// by allowing result values to be `nil`. Such results are not included in the
239 | /// output array.
240 | public func sequencedFlatMapEachCompact<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>) -> EventLoopFuture<[Result]> {
| `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
241 | var results: [Result] = []
242 |
:
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
246 | $0.map { results.append($0) }
| `- warning: capture of 'results' with non-sendable type '[Result]' in an isolated closure; this is an error in the Swift 6 language mode
247 | } }
248 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:246:30: warning: mutation of captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
245 | fut.flatMap { transform(elem).map {
246 | $0.map { results.append($0) }
| `- warning: mutation of captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
247 | } }
248 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Conjunctions.swift:20:19: warning: type 'B' does not conform to the 'Sendable' protocol
14 | /// - Note: This is esssentially just a heterogenous version of `.whenAllSucceed()`.
15 | @inlinable
16 | public static func whenTheySucceed<A, B>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
17 | _ fA: EventLoopFuture<A>, _ fB: EventLoopFuture<B>,
18 | file: StaticString = #file, line: UInt = #line
19 | ) -> EventLoopFuture<(A, B)> where Value == (A, B) {
20 | return fA.and(fB)
| `- warning: type 'B' does not conform to the 'Sendable' protocol
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Conjunctions.swift:475:16: warning: type 'V' does not conform to the 'Sendable' protocol
472 | /// common implementation to simplify the already absurd tuple element count overloads.
473 | @inlinable
474 | internal/*private*/ func whenTheySucceed0<V>(_ future: EventLoopFuture<V>, _ put: @escaping (V) -> Void, _ check: @escaping (V) -> Value?) -> EventLoopPromise<Value> {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
475 | future.hop(to: self.futureResult.eventLoop).whenComplete {
| `- warning: type 'V' does not conform to the 'Sendable' protocol
476 | switch $0 {
477 | case .failure(let error):
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Conjunctions.swift:478:26: warning: type 'Value' does not conform to the 'Sendable' protocol
476 | switch $0 {
477 | case .failure(let error):
478 | self.completeWith(.failure(error))
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
479 | case .success(let value):
480 | if let output = check(value) {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Conjunctions.swift:481:30: warning: type 'Value' does not conform to the 'Sendable' protocol
479 | case .success(let value):
480 | if let output = check(value) {
481 | self.completeWith(.success(output))
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
482 | } else {
483 | put(value)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Conjunctions.swift:480:37: warning: capture of 'check' with non-sendable type '(V) -> Value?' in a '@Sendable' closure
478 | self.completeWith(.failure(error))
479 | case .success(let value):
480 | if let output = check(value) {
| |- warning: capture of 'check' with non-sendable type '(V) -> Value?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
481 | self.completeWith(.success(output))
482 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Conjunctions.swift:483:25: warning: capture of 'put' with non-sendable type '(V) -> Void' in a '@Sendable' closure
481 | self.completeWith(.success(output))
482 | } else {
483 | put(value)
| |- warning: capture of 'put' with non-sendable type '(V) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
484 | }
485 | }
Build complete! (19.35s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.61.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.3",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-collections",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.5",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-collections.git"
},
{
"identity" : "swift-algorithms",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-algorithms.git"
}
],
"manifest_display_name" : "async-kit",
"name" : "async-kit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "AsyncKit",
"targets" : [
"AsyncKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AsyncKitTests",
"module_type" : "SwiftTarget",
"name" : "AsyncKitTests",
"path" : "Tests/AsyncKitTests",
"sources" : [
"AsyncConnectionPoolTests.swift",
"AsyncKitTestsCommon.swift",
"Collection+FlattenTests.swift",
"ConnectionPoolTests.swift",
"EventLoop+ConcurrencyTests.swift",
"EventLoopFutureQueueTests.swift",
"EventLoopGroup+FutureTests.swift",
"Future+CollectionTests.swift",
"Future+ConjunctionTests.swift",
"Future+MiscellaneousTests.swift",
"Future+NonemptyTests.swift",
"Future+OptionalTests.swift",
"Future+TransformTests.swift",
"Future+TryTests.swift",
"FutureOperatorsTests.swift"
],
"target_dependencies" : [
"AsyncKit"
],
"type" : "test"
},
{
"c99name" : "AsyncKit",
"module_type" : "SwiftTarget",
"name" : "AsyncKit",
"path" : "Sources/AsyncKit",
"product_dependencies" : [
"Logging",
"NIOCore",
"NIOEmbedded",
"NIOPosix",
"Collections",
"Algorithms"
],
"product_memberships" : [
"AsyncKit"
],
"sources" : [
"ConnectionPool/ConnectionPoolError.swift",
"ConnectionPool/ConnectionPoolItem.swift",
"ConnectionPool/ConnectionPoolSource.swift",
"ConnectionPool/EventLoopConnectionPool.swift",
"ConnectionPool/EventLoopGroupConnectionPool.swift",
"EventLoop/EventLoop+Concurrency.swift",
"EventLoop/EventLoop+Flatten.swift",
"EventLoop/EventLoop+Future.swift",
"EventLoop/EventLoopGroup+Concurrency.swift",
"EventLoop/EventLoopGroup+Throwing.swift",
"EventLoopFuture/Collection+Flatten.swift",
"EventLoopFuture/EventLoopFutureQueue+Sequence.swift",
"EventLoopFuture/EventLoopFutureQueue.swift",
"EventLoopFuture/Future+Collection.swift",
"EventLoopFuture/Future+Conjunctions.swift",
"EventLoopFuture/Future+Miscellaneous.swift",
"EventLoopFuture/Future+Nonempty.swift",
"EventLoopFuture/Future+Optional.swift",
"EventLoopFuture/Future+Transform.swift",
"EventLoopFuture/Future+Try.swift",
"EventLoopFuture/FutureOperators.swift",
"EventLoopFuture/Optional+StrictMap.swift",
"Exports.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Done.