Build Information
Successful build of AsyncStateMachine, reference main (e7cb90
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 05:08:29 UTC.
Swift 6 data race errors: 3
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -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
12 | where
13 | S: DSLCompatible & Equatable,
:
92 | ) -> Self {
93 | for state in states {
94 | if let receivedOutput = self.stateMachine.output(for: state) {
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
95 | onFail(
96 | """
[31/40] Compiling AsyncStateMachine XCTStateMachine.swift
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:14:25: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 |
8 | // swiftlint:disable identifier_name function_parameter_count
9 | public func inject<A, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
10 | dep a: A,
11 | in block: @Sendable @escaping (A) async throws -> R
12 | ) -> @Sendable () async throws -> R {
13 | {
14 | try await block(a)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:24:25: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
19 | deps a: A,
20 | _ b: B,
:
22 | ) -> @Sendable () async throws -> R {
23 | {
24 | try await block(a, b)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:24:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
19 | deps a: A,
20 | _ b: B,
:
22 | ) -> @Sendable () async throws -> R {
23 | {
24 | try await block(a, b)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:35:25: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async throws -> R {
34 | {
35 | try await block(a, b, c)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:35:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async throws -> R {
34 | {
35 | try await block(a, b, c)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:35:31: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async throws -> R {
34 | {
35 | try await block(a, b, c)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:47:25: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async throws -> R {
46 | {
47 | try await block(a, b, c, d)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:47:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async throws -> R {
46 | {
47 | try await block(a, b, c, d)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:47:31: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async throws -> R {
46 | {
47 | try await block(a, b, c, d)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:47:34: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async throws -> R {
46 | {
47 | try await block(a, b, c, d)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:60:25: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async throws -> R {
59 | {
60 | try await block(a, b, c, d, e)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:60:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async throws -> R {
59 | {
60 | try await block(a, b, c, d, e)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:60:31: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async throws -> R {
59 | {
60 | try await block(a, b, c, d, e)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:60:34: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async throws -> R {
59 | {
60 | try await block(a, b, c, d, e)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:60:37: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async throws -> R {
59 | {
60 | try await block(a, b, c, d, e)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:74:25: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async throws -> R {
73 | {
74 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:74:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async throws -> R {
73 | {
74 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:74:31: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async throws -> R {
73 | {
74 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:74:34: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async throws -> R {
73 | {
74 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:74:37: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async throws -> R {
73 | {
74 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:74:40: warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'F' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async throws -> R {
73 | {
74 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:83:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | }
77 |
78 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
79 | dep b: B,
80 | in block: @Sendable @escaping (A, B) async throws -> R
81 | ) -> @Sendable (A) async throws -> R {
82 | { a in
83 | try await block(a, b)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:93:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | }
86 |
87 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
88 | deps b: B,
89 | _ c: C,
:
91 | ) -> @Sendable (A) async throws -> R {
92 | { a in
93 | try await block(a, b, c)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:93:31: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | }
86 |
87 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
88 | deps b: B,
89 | _ c: C,
:
91 | ) -> @Sendable (A) async throws -> R {
92 | { a in
93 | try await block(a, b, c)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:104:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async throws -> R {
103 | { a in
104 | try await block(a, b, c, d)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:104:31: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async throws -> R {
103 | { a in
104 | try await block(a, b, c, d)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:104:34: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async throws -> R {
103 | { a in
104 | try await block(a, b, c, d)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:116:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async throws -> R {
115 | { a in
116 | try await block(a, b, c, d, e)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:116:31: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async throws -> R {
115 | { a in
116 | try await block(a, b, c, d, e)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:116:34: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async throws -> R {
115 | { a in
116 | try await block(a, b, c, d, e)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:116:37: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async throws -> R {
115 | { a in
116 | try await block(a, b, c, d, e)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:129:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async throws -> R {
128 | { a in
129 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:129:31: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async throws -> R {
128 | { a in
129 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:129:34: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async throws -> R {
128 | { a in
129 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:129:37: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async throws -> R {
128 | { a in
129 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:129:40: warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'F' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async throws -> R {
128 | { a in
129 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/XCTest/XCTStateMachine.swift:16:7: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | import XCTestDynamicOverlay
10 |
11 | public class XCTStateMachine<S, E, O>
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where
13 | S: DSLCompatible & Equatable,
14 | E: DSLCompatible & Equatable,
15 | O: DSLCompatible & Equatable {
16 | let stateMachine: StateMachine<S, E, O>
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 |
18 | public init(_ stateMachine: StateMachine<S, E, O>) {
/Users/admin/builder/spi-builder-workspace/Sources/XCTest/XCTStateMachine.swift:30:51: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | import XCTestDynamicOverlay
10 |
11 | public class XCTStateMachine<S, E, O>
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where
13 | S: DSLCompatible & Equatable,
:
28 | ) async -> Self {
29 | for state in states {
30 | let receivedState = await self.stateMachine.reduce(when: state, on: event)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
31 | guard receivedState == expectedState else {
32 | fail(
/Users/admin/builder/spi-builder-workspace/Sources/XCTest/XCTStateMachine.swift:52:54: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | import XCTestDynamicOverlay
10 |
11 | public class XCTStateMachine<S, E, O>
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where
13 | S: DSLCompatible & Equatable,
:
50 | ) async -> Self {
51 | for state in states {
52 | if let receivedState = await self.stateMachine.reduce(when: state, on: event) {
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
53 | fail(
54 | """
/Users/admin/builder/spi-builder-workspace/Sources/XCTest/XCTStateMachine.swift:73:46: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | import XCTestDynamicOverlay
10 |
11 | public class XCTStateMachine<S, E, O>
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where
13 | S: DSLCompatible & Equatable,
:
71 | ) -> Self {
72 | for state in states {
73 | let receivedOutput = self.stateMachine.output(for: state)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
74 | guard receivedOutput == expectedOutput else {
75 | onFail(
/Users/admin/builder/spi-builder-workspace/Sources/XCTest/XCTStateMachine.swift:94:49: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | import XCTestDynamicOverlay
10 |
11 | public class XCTStateMachine<S, E, O>
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where
13 | S: DSLCompatible & Equatable,
:
92 | ) -> Self {
93 | for state in states {
94 | if let receivedOutput = self.stateMachine.output(for: state) {
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
95 | onFail(
96 | """
[32/40] Compiling AsyncStateMachine AsyncStateMachine.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/AsyncStateMachine.swift:43:7: warning: capture of 'onDeinit' with non-sendable type '(() -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | channelReceiver.update(receiver: nil)
42 | }
43 | onDeinit?()
| |- warning: capture of 'onDeinit' with non-sendable type '(() -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
44 | }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:181:10: warning: actor-isolated instance method 'cancelTasksInProgress()' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
88 | }
89 |
90 | func cancelTasksInProgress() {
| `- note: calls to instance method 'cancelTasksInProgress()' from outside of its actor context are implicitly asynchronous
91 | self
92 | .tasksInProgress
:
179 |
180 | deinit {
181 | self.cancelTasksInProgress()
| `- warning: actor-isolated instance method 'cancelTasksInProgress()' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
182 | self.onDeinit?()
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:19:7: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
17 |
18 | @Published public internal(set) var state: VS
19 | let asyncStateMachine: AsyncStateMachine<S, E, O>
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 | let stateToViewState: @Sendable (S) -> VS
21 | let suspensions: ManagedCriticalState<[SendSuspension]>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:19:7: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
17 |
18 | @Published public internal(set) var state: VS
19 | let asyncStateMachine: AsyncStateMachine<S, E, O>
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 | let stateToViewState: @Sendable (S) -> VS
21 | let suspensions: ManagedCriticalState<[SendSuspension]>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:45:58: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
43 | self.asyncStateMachine = asyncStateMachine
44 | self.stateToViewState = stateToViewState
45 | self.state = stateToViewState(self.asyncStateMachine.initialState)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | self.suspensions = ManagedCriticalState([])
47 | self.running = ManagedCriticalState(false)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:45:58: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
43 | self.asyncStateMachine = asyncStateMachine
44 | self.stateToViewState = stateToViewState
45 | self.state = stateToViewState(self.asyncStateMachine.initialState)
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | self.suspensions = ManagedCriticalState([])
47 | self.running = ManagedCriticalState(false)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:52:28: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
50 |
51 | public func send(_ event: E) {
52 | self.asyncStateMachine.send(event)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:52:28: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
50 |
51 | public func send(_ event: E) {
52 | self.asyncStateMachine.send(event)
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:64:25: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
62 | }
63 |
64 | asyncStateMachine.send(event)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:64:25: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
62 | }
63 |
64 | asyncStateMachine.send(event)
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:25: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:25: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:7: warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| `- warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:7: warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| `- warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:30: warning: capture of 'event' with non-sendable type '(VS) -> E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| |- warning: capture of 'event' with non-sendable type '(VS) -> E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:161:25: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
162 | }
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:161:25: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
162 | }
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:159:27: warning: capture of 'keypath' with non-sendable type 'KeyPath<VS, T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | func binding<T>(keypath: KeyPath<VS, T>, send event: @escaping (T) -> E) -> Binding<T> {
158 | Binding {
159 | self.state[keyPath: keypath]
| `- warning: capture of 'keypath' with non-sendable type 'KeyPath<VS, T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
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/AsyncStateMachine/ViewStateMachine.swift:161:7: warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| `- warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | }
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:161:7: warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| `- warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | }
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:161:30: warning: capture of 'event' with non-sendable type '(T) -> E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| |- warning: capture of 'event' with non-sendable type '(T) -> E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
162 | }
163 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:182:10: warning: cannot access property 'onDeinit' with a non-sendable type '(() -> Void)?' from nonisolated deinit; this is an error in the Swift 6 language mode
180 | deinit {
181 | self.cancelTasksInProgress()
182 | self.onDeinit?()
| `- warning: cannot access property 'onDeinit' with a non-sendable type '(() -> Void)?' from nonisolated deinit; this is an error in the Swift 6 language mode
183 | }
184 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:140:73: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
138 |
139 | for middleware in middlewares {
140 | let task: Task<Void, Never> = Task(priority: middleware.priority) {
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
141 | await middleware.execute(value)
| `- note: closure captures 'value' which is accessible to 'self'-isolated code
142 | }
143 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:163:71: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
161 | let events = sideEffect.execute(output) else { return nil }
162 |
163 | let task: Task<Void, Never> = Task(priority: sideEffect.priority) {
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
164 | do {
165 | for try await event in events {
| `- note: closure captures 'events' which is accessible to 'self'-isolated code
166 | sendBackEvent?(event)
167 | }
[33/40] Compiling AsyncStateMachine Engine.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/AsyncStateMachine.swift:43:7: warning: capture of 'onDeinit' with non-sendable type '(() -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | channelReceiver.update(receiver: nil)
42 | }
43 | onDeinit?()
| |- warning: capture of 'onDeinit' with non-sendable type '(() -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
44 | }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:181:10: warning: actor-isolated instance method 'cancelTasksInProgress()' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
88 | }
89 |
90 | func cancelTasksInProgress() {
| `- note: calls to instance method 'cancelTasksInProgress()' from outside of its actor context are implicitly asynchronous
91 | self
92 | .tasksInProgress
:
179 |
180 | deinit {
181 | self.cancelTasksInProgress()
| `- warning: actor-isolated instance method 'cancelTasksInProgress()' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
182 | self.onDeinit?()
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:19:7: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
17 |
18 | @Published public internal(set) var state: VS
19 | let asyncStateMachine: AsyncStateMachine<S, E, O>
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 | let stateToViewState: @Sendable (S) -> VS
21 | let suspensions: ManagedCriticalState<[SendSuspension]>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:19:7: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
17 |
18 | @Published public internal(set) var state: VS
19 | let asyncStateMachine: AsyncStateMachine<S, E, O>
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 | let stateToViewState: @Sendable (S) -> VS
21 | let suspensions: ManagedCriticalState<[SendSuspension]>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:45:58: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
43 | self.asyncStateMachine = asyncStateMachine
44 | self.stateToViewState = stateToViewState
45 | self.state = stateToViewState(self.asyncStateMachine.initialState)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | self.suspensions = ManagedCriticalState([])
47 | self.running = ManagedCriticalState(false)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:45:58: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
43 | self.asyncStateMachine = asyncStateMachine
44 | self.stateToViewState = stateToViewState
45 | self.state = stateToViewState(self.asyncStateMachine.initialState)
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | self.suspensions = ManagedCriticalState([])
47 | self.running = ManagedCriticalState(false)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:52:28: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
50 |
51 | public func send(_ event: E) {
52 | self.asyncStateMachine.send(event)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:52:28: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
50 |
51 | public func send(_ event: E) {
52 | self.asyncStateMachine.send(event)
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:64:25: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
62 | }
63 |
64 | asyncStateMachine.send(event)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:64:25: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
62 | }
63 |
64 | asyncStateMachine.send(event)
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:25: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:25: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:7: warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| `- warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:7: warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| `- warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:30: warning: capture of 'event' with non-sendable type '(VS) -> E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| |- warning: capture of 'event' with non-sendable type '(VS) -> E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:161:25: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
162 | }
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:161:25: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
162 | }
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:159:27: warning: capture of 'keypath' with non-sendable type 'KeyPath<VS, T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | func binding<T>(keypath: KeyPath<VS, T>, send event: @escaping (T) -> E) -> Binding<T> {
158 | Binding {
159 | self.state[keyPath: keypath]
| `- warning: capture of 'keypath' with non-sendable type 'KeyPath<VS, T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
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/AsyncStateMachine/ViewStateMachine.swift:161:7: warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| `- warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | }
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:161:7: warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| `- warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | }
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:161:30: warning: capture of 'event' with non-sendable type '(T) -> E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| |- warning: capture of 'event' with non-sendable type '(T) -> E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
162 | }
163 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:182:10: warning: cannot access property 'onDeinit' with a non-sendable type '(() -> Void)?' from nonisolated deinit; this is an error in the Swift 6 language mode
180 | deinit {
181 | self.cancelTasksInProgress()
182 | self.onDeinit?()
| `- warning: cannot access property 'onDeinit' with a non-sendable type '(() -> Void)?' from nonisolated deinit; this is an error in the Swift 6 language mode
183 | }
184 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:140:73: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
138 |
139 | for middleware in middlewares {
140 | let task: Task<Void, Never> = Task(priority: middleware.priority) {
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
141 | await middleware.execute(value)
| `- note: closure captures 'value' which is accessible to 'self'-isolated code
142 | }
143 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:163:71: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
161 | let events = sideEffect.execute(output) else { return nil }
162 |
163 | let task: Task<Void, Never> = Task(priority: sideEffect.priority) {
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
164 | do {
165 | for try await event in events {
| `- note: closure captures 'events' which is accessible to 'self'-isolated code
166 | sendBackEvent?(event)
167 | }
[34/40] Compiling AsyncStateMachine ViewStateMachine.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/AsyncStateMachine.swift:43:7: warning: capture of 'onDeinit' with non-sendable type '(() -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | channelReceiver.update(receiver: nil)
42 | }
43 | onDeinit?()
| |- warning: capture of 'onDeinit' with non-sendable type '(() -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
44 | }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:181:10: warning: actor-isolated instance method 'cancelTasksInProgress()' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
88 | }
89 |
90 | func cancelTasksInProgress() {
| `- note: calls to instance method 'cancelTasksInProgress()' from outside of its actor context are implicitly asynchronous
91 | self
92 | .tasksInProgress
:
179 |
180 | deinit {
181 | self.cancelTasksInProgress()
| `- warning: actor-isolated instance method 'cancelTasksInProgress()' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
182 | self.onDeinit?()
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:19:7: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
17 |
18 | @Published public internal(set) var state: VS
19 | let asyncStateMachine: AsyncStateMachine<S, E, O>
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 | let stateToViewState: @Sendable (S) -> VS
21 | let suspensions: ManagedCriticalState<[SendSuspension]>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:19:7: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
17 |
18 | @Published public internal(set) var state: VS
19 | let asyncStateMachine: AsyncStateMachine<S, E, O>
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 | let stateToViewState: @Sendable (S) -> VS
21 | let suspensions: ManagedCriticalState<[SendSuspension]>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:45:58: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
43 | self.asyncStateMachine = asyncStateMachine
44 | self.stateToViewState = stateToViewState
45 | self.state = stateToViewState(self.asyncStateMachine.initialState)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | self.suspensions = ManagedCriticalState([])
47 | self.running = ManagedCriticalState(false)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:45:58: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
43 | self.asyncStateMachine = asyncStateMachine
44 | self.stateToViewState = stateToViewState
45 | self.state = stateToViewState(self.asyncStateMachine.initialState)
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | self.suspensions = ManagedCriticalState([])
47 | self.running = ManagedCriticalState(false)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:52:28: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
50 |
51 | public func send(_ event: E) {
52 | self.asyncStateMachine.send(event)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:52:28: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
50 |
51 | public func send(_ event: E) {
52 | self.asyncStateMachine.send(event)
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:64:25: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
62 | }
63 |
64 | asyncStateMachine.send(event)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:64:25: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
62 | }
63 |
64 | asyncStateMachine.send(event)
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:25: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:25: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:7: warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| `- warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:7: warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| `- warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:30: warning: capture of 'event' with non-sendable type '(VS) -> E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| |- warning: capture of 'event' with non-sendable type '(VS) -> E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:161:25: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
162 | }
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:161:25: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
162 | }
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:159:27: warning: capture of 'keypath' with non-sendable type 'KeyPath<VS, T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | func binding<T>(keypath: KeyPath<VS, T>, send event: @escaping (T) -> E) -> Binding<T> {
158 | Binding {
159 | self.state[keyPath: keypath]
| `- warning: capture of 'keypath' with non-sendable type 'KeyPath<VS, T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
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/AsyncStateMachine/ViewStateMachine.swift:161:7: warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| `- warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | }
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:161:7: warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| `- warning: capture of 'asyncStateMachine' with non-sendable type 'AsyncStateMachine<S, E, O>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | }
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:161:30: warning: capture of 'event' with non-sendable type '(T) -> E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| |- warning: capture of 'event' with non-sendable type '(T) -> E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
162 | }
163 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:182:10: warning: cannot access property 'onDeinit' with a non-sendable type '(() -> Void)?' from nonisolated deinit; this is an error in the Swift 6 language mode
180 | deinit {
181 | self.cancelTasksInProgress()
182 | self.onDeinit?()
| `- warning: cannot access property 'onDeinit' with a non-sendable type '(() -> Void)?' from nonisolated deinit; this is an error in the Swift 6 language mode
183 | }
184 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:140:73: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
138 |
139 | for middleware in middlewares {
140 | let task: Task<Void, Never> = Task(priority: middleware.priority) {
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
141 | await middleware.execute(value)
| `- note: closure captures 'value' which is accessible to 'self'-isolated code
142 | }
143 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:163:71: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
161 | let events = sideEffect.execute(output) else { return nil }
162 |
163 | let task: Task<Void, Never> = Task(priority: sideEffect.priority) {
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
164 | do {
165 | for try await event in events {
| `- note: closure captures 'events' which is accessible to 'self'-isolated code
166 | sendBackEvent?(event)
167 | }
[35/40] Compiling AsyncStateMachine AsyncOnEachSequence.swift
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncOnEachSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func onEach(_ block: @Sendable @escaping (Element) async -> Void) -> AsyncOnEachSequence<Self> {
10 | AsyncOnEachSequence(self, onEach: block)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncOnEachSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func onEach(_ block: @Sendable @escaping (Element) async -> Void) -> AsyncOnEachSequence<Self> {
10 | AsyncOnEachSequence(self, onEach: block)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncSerialSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func serial() -> AsyncSerialSequence<Self> {
10 | AsyncSerialSequence(base: self)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncSerialSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func serial() -> AsyncSerialSequence<Self> {
10 | AsyncSerialSequence(base: self)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncSerialSequence.swift:148:22: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
146 | let isCancelled = ManagedCriticalState<Bool>(false)
147 |
148 | return try await withTaskCancellationHandler { [weak self] in
| |- warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
| `- note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
149 | self?.handleNextCancellation(
150 | tokenId: tokenId,
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:35:7: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 |
34 | return Binding {
35 | self.wrappedValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | } set: { value in
37 | if debounceInProgress.criticalState {
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:39:9: warning: capture of 'lastKnownValue' with non-sendable type 'ManagedCriticalState<Binding<Value>.DueValue?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 |
24 | extension Binding {
25 | struct DueValue {
| `- note: consider making struct 'DueValue' conform to the 'Sendable' protocol
26 | let value: Value
27 | let dueTime: DispatchTime
:
37 | if debounceInProgress.criticalState {
38 | let newValue = DueValue(value: value, dueTime: DispatchTime.now().advanced(by: dueTime))
39 | lastKnownValue.apply(criticalState: newValue)
| `- warning: capture of 'lastKnownValue' with non-sendable type 'ManagedCriticalState<Binding<Value>.DueValue?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | } else {
41 | debounceInProgress.apply(criticalState: true)
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:57:11: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | } while lastKnownValue.criticalState != nil
56 | debounceInProgress.apply(criticalState: false)
57 | self.wrappedValue = currentValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | }
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:47:13: warning: capture of 'lastKnownValue' with non-sendable type 'ManagedCriticalState<Binding<Value>.DueValue?>' in an isolated closure; this is an error in the Swift 6 language mode
23 |
24 | extension Binding {
25 | struct DueValue {
| `- note: consider making struct 'DueValue' conform to the 'Sendable' protocol
26 | let value: Value
27 | let dueTime: DispatchTime
:
45 |
46 | repeat {
47 | lastKnownValue.apply(criticalState: nil)
| `- warning: capture of 'lastKnownValue' with non-sendable type 'ManagedCriticalState<Binding<Value>.DueValue?>' in an isolated closure; this is an error in the Swift 6 language mode
48 |
49 | try? await Task.sleep(nanoseconds: timeToSleep)
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:57:11: warning: capture of 'self' with non-sendable type 'Binding<Value>' in an isolated closure; this is an error in the Swift 6 language mode
55 | } while lastKnownValue.criticalState != nil
56 | debounceInProgress.apply(criticalState: false)
57 | self.wrappedValue = currentValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in an isolated closure; this is an error in the Swift 6 language mode
58 | }
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:42:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
40 | } else {
41 | debounceInProgress.apply(criticalState: true)
42 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
43 | var timeToSleep = dueTime.nanoseconds
44 | var currentValue = value
| `- note: closure captures non-Sendable 'value'
45 |
46 | repeat {
47 | lastKnownValue.apply(criticalState: nil)
| `- note: closure captures non-Sendable 'lastKnownValue'
48 |
49 | try? await Task.sleep(nanoseconds: timeToSleep)
[36/40] Compiling AsyncStateMachine AsyncSerialSequence.swift
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncOnEachSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func onEach(_ block: @Sendable @escaping (Element) async -> Void) -> AsyncOnEachSequence<Self> {
10 | AsyncOnEachSequence(self, onEach: block)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncOnEachSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func onEach(_ block: @Sendable @escaping (Element) async -> Void) -> AsyncOnEachSequence<Self> {
10 | AsyncOnEachSequence(self, onEach: block)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncSerialSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func serial() -> AsyncSerialSequence<Self> {
10 | AsyncSerialSequence(base: self)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncSerialSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func serial() -> AsyncSerialSequence<Self> {
10 | AsyncSerialSequence(base: self)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncSerialSequence.swift:148:22: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
146 | let isCancelled = ManagedCriticalState<Bool>(false)
147 |
148 | return try await withTaskCancellationHandler { [weak self] in
| |- warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
| `- note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
149 | self?.handleNextCancellation(
150 | tokenId: tokenId,
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:35:7: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 |
34 | return Binding {
35 | self.wrappedValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | } set: { value in
37 | if debounceInProgress.criticalState {
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:39:9: warning: capture of 'lastKnownValue' with non-sendable type 'ManagedCriticalState<Binding<Value>.DueValue?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 |
24 | extension Binding {
25 | struct DueValue {
| `- note: consider making struct 'DueValue' conform to the 'Sendable' protocol
26 | let value: Value
27 | let dueTime: DispatchTime
:
37 | if debounceInProgress.criticalState {
38 | let newValue = DueValue(value: value, dueTime: DispatchTime.now().advanced(by: dueTime))
39 | lastKnownValue.apply(criticalState: newValue)
| `- warning: capture of 'lastKnownValue' with non-sendable type 'ManagedCriticalState<Binding<Value>.DueValue?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | } else {
41 | debounceInProgress.apply(criticalState: true)
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:57:11: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | } while lastKnownValue.criticalState != nil
56 | debounceInProgress.apply(criticalState: false)
57 | self.wrappedValue = currentValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | }
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:47:13: warning: capture of 'lastKnownValue' with non-sendable type 'ManagedCriticalState<Binding<Value>.DueValue?>' in an isolated closure; this is an error in the Swift 6 language mode
23 |
24 | extension Binding {
25 | struct DueValue {
| `- note: consider making struct 'DueValue' conform to the 'Sendable' protocol
26 | let value: Value
27 | let dueTime: DispatchTime
:
45 |
46 | repeat {
47 | lastKnownValue.apply(criticalState: nil)
| `- warning: capture of 'lastKnownValue' with non-sendable type 'ManagedCriticalState<Binding<Value>.DueValue?>' in an isolated closure; this is an error in the Swift 6 language mode
48 |
49 | try? await Task.sleep(nanoseconds: timeToSleep)
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:57:11: warning: capture of 'self' with non-sendable type 'Binding<Value>' in an isolated closure; this is an error in the Swift 6 language mode
55 | } while lastKnownValue.criticalState != nil
56 | debounceInProgress.apply(criticalState: false)
57 | self.wrappedValue = currentValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in an isolated closure; this is an error in the Swift 6 language mode
58 | }
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:42:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
40 | } else {
41 | debounceInProgress.apply(criticalState: true)
42 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
43 | var timeToSleep = dueTime.nanoseconds
44 | var currentValue = value
| `- note: closure captures non-Sendable 'value'
45 |
46 | repeat {
47 | lastKnownValue.apply(criticalState: nil)
| `- note: closure captures non-Sendable 'lastKnownValue'
48 |
49 | try? await Task.sleep(nanoseconds: timeToSleep)
[37/40] Compiling AsyncStateMachine Binding+Debounce.swift
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncOnEachSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func onEach(_ block: @Sendable @escaping (Element) async -> Void) -> AsyncOnEachSequence<Self> {
10 | AsyncOnEachSequence(self, onEach: block)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncOnEachSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func onEach(_ block: @Sendable @escaping (Element) async -> Void) -> AsyncOnEachSequence<Self> {
10 | AsyncOnEachSequence(self, onEach: block)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncSerialSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func serial() -> AsyncSerialSequence<Self> {
10 | AsyncSerialSequence(base: self)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncSerialSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func serial() -> AsyncSerialSequence<Self> {
10 | AsyncSerialSequence(base: self)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncSerialSequence.swift:148:22: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
146 | let isCancelled = ManagedCriticalState<Bool>(false)
147 |
148 | return try await withTaskCancellationHandler { [weak self] in
| |- warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
| `- note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
149 | self?.handleNextCancellation(
150 | tokenId: tokenId,
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:35:7: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 |
34 | return Binding {
35 | self.wrappedValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | } set: { value in
37 | if debounceInProgress.criticalState {
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:39:9: warning: capture of 'lastKnownValue' with non-sendable type 'ManagedCriticalState<Binding<Value>.DueValue?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 |
24 | extension Binding {
25 | struct DueValue {
| `- note: consider making struct 'DueValue' conform to the 'Sendable' protocol
26 | let value: Value
27 | let dueTime: DispatchTime
:
37 | if debounceInProgress.criticalState {
38 | let newValue = DueValue(value: value, dueTime: DispatchTime.now().advanced(by: dueTime))
39 | lastKnownValue.apply(criticalState: newValue)
| `- warning: capture of 'lastKnownValue' with non-sendable type 'ManagedCriticalState<Binding<Value>.DueValue?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | } else {
41 | debounceInProgress.apply(criticalState: true)
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:57:11: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | } while lastKnownValue.criticalState != nil
56 | debounceInProgress.apply(criticalState: false)
57 | self.wrappedValue = currentValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | }
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:47:13: warning: capture of 'lastKnownValue' with non-sendable type 'ManagedCriticalState<Binding<Value>.DueValue?>' in an isolated closure; this is an error in the Swift 6 language mode
23 |
24 | extension Binding {
25 | struct DueValue {
| `- note: consider making struct 'DueValue' conform to the 'Sendable' protocol
26 | let value: Value
27 | let dueTime: DispatchTime
:
45 |
46 | repeat {
47 | lastKnownValue.apply(criticalState: nil)
| `- warning: capture of 'lastKnownValue' with non-sendable type 'ManagedCriticalState<Binding<Value>.DueValue?>' in an isolated closure; this is an error in the Swift 6 language mode
48 |
49 | try? await Task.sleep(nanoseconds: timeToSleep)
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:57:11: warning: capture of 'self' with non-sendable type 'Binding<Value>' in an isolated closure; this is an error in the Swift 6 language mode
55 | } while lastKnownValue.criticalState != nil
56 | debounceInProgress.apply(criticalState: false)
57 | self.wrappedValue = currentValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in an isolated closure; this is an error in the Swift 6 language mode
58 | }
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:42:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
40 | } else {
41 | debounceInProgress.apply(criticalState: true)
42 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
43 | var timeToSleep = dueTime.nanoseconds
44 | var currentValue = value
| `- note: closure captures non-Sendable 'value'
45 |
46 | repeat {
47 | lastKnownValue.apply(criticalState: nil)
| `- note: closure captures non-Sendable 'lastKnownValue'
48 |
49 | try? await Task.sleep(nanoseconds: timeToSleep)
[38/40] Compiling AsyncStateMachine Binding+Distinct.swift
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Distinct.swift:14:7: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | func distinct() -> Self {
13 | return Binding {
14 | self.wrappedValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | } set: { value in
16 | guard value != self.wrappedValue else { return }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Distinct.swift:16:22: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | self.wrappedValue
15 | } set: { value in
16 | guard value != self.wrappedValue else { return }
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | self.wrappedValue = value
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:14:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 |
8 | // swiftlint:disable identifier_name function_parameter_count
9 | public func inject<A, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
10 | dep a: A,
11 | in block: @Sendable @escaping (A) async -> R
12 | ) -> @Sendable () async -> R {
13 | {
14 | await block(a)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:24:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
19 | deps a: A,
20 | _ b: B,
:
22 | ) -> @Sendable () async -> R {
23 | {
24 | await block(a, b)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:24:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
19 | deps a: A,
20 | _ b: B,
:
22 | ) -> @Sendable () async -> R {
23 | {
24 | await block(a, b)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:35:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async -> R {
34 | {
35 | await block(a, b, c)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:35:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async -> R {
34 | {
35 | await block(a, b, c)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:35:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async -> R {
34 | {
35 | await block(a, b, c)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:36: warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'F' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:83:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | }
77 |
78 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
79 | dep b: B,
80 | in block: @Sendable @escaping (A, B) async -> R
81 | ) -> @Sendable (A) async -> R {
82 | { a in
83 | await block(a, b)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:93:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | }
86 |
87 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
88 | deps b: B,
89 | _ c: C,
:
91 | ) -> @Sendable (A) async -> R {
92 | { a in
93 | await block(a, b, c)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:93:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | }
86 |
87 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
88 | deps b: B,
89 | _ c: C,
:
91 | ) -> @Sendable (A) async -> R {
92 | { a in
93 | await block(a, b, c)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:104:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async -> R {
103 | { a in
104 | await block(a, b, c, d)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:104:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async -> R {
103 | { a in
104 | await block(a, b, c, d)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:104:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async -> R {
103 | { a in
104 | await block(a, b, c, d)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:36: warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'F' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
[39/40] Compiling AsyncStateMachine Inject.swift
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Distinct.swift:14:7: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | func distinct() -> Self {
13 | return Binding {
14 | self.wrappedValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | } set: { value in
16 | guard value != self.wrappedValue else { return }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Distinct.swift:16:22: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | self.wrappedValue
15 | } set: { value in
16 | guard value != self.wrappedValue else { return }
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | self.wrappedValue = value
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:14:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 |
8 | // swiftlint:disable identifier_name function_parameter_count
9 | public func inject<A, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
10 | dep a: A,
11 | in block: @Sendable @escaping (A) async -> R
12 | ) -> @Sendable () async -> R {
13 | {
14 | await block(a)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:24:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
19 | deps a: A,
20 | _ b: B,
:
22 | ) -> @Sendable () async -> R {
23 | {
24 | await block(a, b)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:24:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
19 | deps a: A,
20 | _ b: B,
:
22 | ) -> @Sendable () async -> R {
23 | {
24 | await block(a, b)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:35:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async -> R {
34 | {
35 | await block(a, b, c)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:35:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async -> R {
34 | {
35 | await block(a, b, c)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:35:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async -> R {
34 | {
35 | await block(a, b, c)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:36: warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'F' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:83:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | }
77 |
78 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
79 | dep b: B,
80 | in block: @Sendable @escaping (A, B) async -> R
81 | ) -> @Sendable (A) async -> R {
82 | { a in
83 | await block(a, b)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:93:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | }
86 |
87 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
88 | deps b: B,
89 | _ c: C,
:
91 | ) -> @Sendable (A) async -> R {
92 | { a in
93 | await block(a, b, c)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:93:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | }
86 |
87 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
88 | deps b: B,
89 | _ c: C,
:
91 | ) -> @Sendable (A) async -> R {
92 | { a in
93 | await block(a, b, c)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:104:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async -> R {
103 | { a in
104 | await block(a, b, c, d)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:104:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async -> R {
103 | { a in
104 | await block(a, b, c, d)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:104:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async -> R {
103 | { a in
104 | await block(a, b, c, d)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:36: warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'F' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
[40/40] Compiling AsyncStateMachine ManagedCriticalState.swift
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Distinct.swift:14:7: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | func distinct() -> Self {
13 | return Binding {
14 | self.wrappedValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | } set: { value in
16 | guard value != self.wrappedValue else { return }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Distinct.swift:16:22: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | self.wrappedValue
15 | } set: { value in
16 | guard value != self.wrappedValue else { return }
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | self.wrappedValue = value
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:14:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 |
8 | // swiftlint:disable identifier_name function_parameter_count
9 | public func inject<A, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
10 | dep a: A,
11 | in block: @Sendable @escaping (A) async -> R
12 | ) -> @Sendable () async -> R {
13 | {
14 | await block(a)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:24:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
19 | deps a: A,
20 | _ b: B,
:
22 | ) -> @Sendable () async -> R {
23 | {
24 | await block(a, b)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:24:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
19 | deps a: A,
20 | _ b: B,
:
22 | ) -> @Sendable () async -> R {
23 | {
24 | await block(a, b)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:35:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async -> R {
34 | {
35 | await block(a, b, c)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:35:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async -> R {
34 | {
35 | await block(a, b, c)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:35:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async -> R {
34 | {
35 | await block(a, b, c)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:36: warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'F' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:83:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | }
77 |
78 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
79 | dep b: B,
80 | in block: @Sendable @escaping (A, B) async -> R
81 | ) -> @Sendable (A) async -> R {
82 | { a in
83 | await block(a, b)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:93:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | }
86 |
87 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
88 | deps b: B,
89 | _ c: C,
:
91 | ) -> @Sendable (A) async -> R {
92 | { a in
93 | await block(a, b, c)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:93:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | }
86 |
87 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
88 | deps b: B,
89 | _ c: C,
:
91 | ) -> @Sendable (A) async -> R {
92 | { a in
93 | await block(a, b, c)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:104:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async -> R {
103 | { a in
104 | await block(a, b, c, d)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:104:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async -> R {
103 | { a in
104 | await block(a, b, c, d)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:104:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async -> R {
103 | { a in
104 | await block(a, b, c, d)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:36: warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'F' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
Build complete! (15.14s)
Build complete.
{
"dependencies" : [
{
"identity" : "xctest-dynamic-overlay",
"requirement" : {
"range" : [
{
"lower_bound" : "0.4.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/xctest-dynamic-overlay.git"
}
],
"manifest_display_name" : "AsyncStateMachine",
"name" : "AsyncStateMachine",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "AsyncStateMachine",
"targets" : [
"AsyncStateMachine"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AsyncStateMachineTests",
"module_type" : "SwiftTarget",
"name" : "AsyncStateMachineTests",
"path" : "Tests",
"sources" : [
"AsyncStateMachine/AsyncStateMachineTests.swift",
"AsyncStateMachine/EngineTests.swift",
"AsyncStateMachine/ViewStateMachineTests.swift",
"Runtime/ChannelTests.swift",
"Runtime/ExecutionStrategyTests.swift",
"Runtime/RuntimeTests.swift",
"StateMachine/DSLCompatibleTests.swift",
"StateMachine/ExecuteTests.swift",
"StateMachine/GuardTests.swift",
"StateMachine/OnTests.swift",
"StateMachine/OneOfTests.swift",
"StateMachine/StateMachineTests.swift",
"StateMachine/TransitionTests.swift",
"StateMachine/WhenTests.swift",
"Supporting/AsyncBufferedChannelTests.swift",
"Supporting/AsyncCompactScanSequenceTests.swift",
"Supporting/AsyncJustSequenceTests.swift",
"Supporting/AsyncOnEachSequenceTests.swift",
"Supporting/AsyncSerialSequenceTests.swift",
"Supporting/Binding+DebounceTests.swift",
"Supporting/Binding+DistinctTests.swift",
"Supporting/InjectTests.swift",
"Supporting/OrderedStorageTests.swift",
"Supporting/ThrowingInjectTests.swift",
"Tools/AsyncLazySequence.swift",
"Tools/AsyncSequence+Collect.swift",
"Tools/AsyncSuspendableChannel.swift",
"Tools/AsyncThrowingSequence.swift",
"Tools/Task+ForEver.swift",
"XCTest/XCTStateMachineTests.swift"
],
"target_dependencies" : [
"AsyncStateMachine"
],
"type" : "test"
},
{
"c99name" : "AsyncStateMachine",
"module_type" : "SwiftTarget",
"name" : "AsyncStateMachine",
"path" : "Sources",
"product_dependencies" : [
"XCTestDynamicOverlay"
],
"product_memberships" : [
"AsyncStateMachine"
],
"sources" : [
"AsyncStateMachine/AsyncStateMachine.swift",
"AsyncStateMachine/Engine.swift",
"AsyncStateMachine/ViewStateMachine.swift",
"Runtime/Channel.swift",
"Runtime/ExecutionStrategy.swift",
"Runtime/Middleware.swift",
"Runtime/Runtime.swift",
"Runtime/SideEffect.swift",
"StateMachine/DSLCompatible.swift",
"StateMachine/Execute.swift",
"StateMachine/Guard.swift",
"StateMachine/Never+DSLCompatible.swift",
"StateMachine/On.swift",
"StateMachine/OneOf.swift",
"StateMachine/StateMachine.swift",
"StateMachine/Transition.swift",
"StateMachine/When.swift",
"Supporting/AnyAsyncSequence.swift",
"Supporting/AsyncBufferedChannel.swift",
"Supporting/AsyncCompactScanSequence.swift",
"Supporting/AsyncJustSequence.swift",
"Supporting/AsyncOnEachSequence.swift",
"Supporting/AsyncSerialSequence.swift",
"Supporting/Binding+Debounce.swift",
"Supporting/Binding+Distinct.swift",
"Supporting/Inject.swift",
"Supporting/ManagedCriticalState.swift",
"Supporting/OrderedStorage.swift",
"Supporting/ThrowingInject.swift",
"XCTest/XCTStateMachine.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.