Build Information
Successful build of SwiftStack with Swift 6.0 for Linux.
Swift 6 data race errors: 0
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSuggestedEdits.swift:66:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<SuggestedEdit>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | )
65 |
66 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<SuggestedEdit>?, (any Error)?) -> ()' 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'
67 | } catch {
68 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSuggestedEdits.swift:127:64: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | queue.async {
126 | do {
127 | let response: APIResponse<SuggestedEdit> = try self.fetchSuggestedEdits(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | ids,
129 | parameters: parameters,
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSuggestedEdits.swift:130:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | ids,
129 | parameters: parameters,
130 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
131 | )
132 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSuggestedEdits.swift:133:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<SuggestedEdit>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
131 | )
132 |
133 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<SuggestedEdit>?, (any Error)?) -> ()' 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'
134 | } catch {
135 | completionHandler(nil, error)
[11/27] Compiling SwiftStack RequestsSites.swift
/host/spi-builder-workspace/Sources/SwiftStack/RequestsRevisions.swift:74:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | queue.async {
73 | do {
74 | let response: APIResponse<Revision> = try self.fetchRevisions(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | ids,
76 | parameters: parameters,
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsRevisions.swift:77:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | ids,
76 | parameters: parameters,
77 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | )
79 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsRevisions.swift:80:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Revision>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | )
79 |
80 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Revision>?, (any Error)?) -> ()' 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'
81 | } catch {
82 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSites.swift:60:55: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 |
59 | do {
60 | let response: APIResponse<Site> = try self.fetchSites(parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | completionHandler(response, nil)
62 | } catch {
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSites.swift:60:112: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 |
59 | do {
60 | let response: APIResponse<Site> = try self.fetchSites(parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | completionHandler(response, nil)
62 | } catch {
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSites.swift:61:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Site>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | do {
60 | let response: APIResponse<Site> = try self.fetchSites(parameters: parameters, backoffBehavior: backoffBehavior)
61 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Site>?, (any Error)?) -> ()' 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'
62 | } catch {
63 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSuggestedEdits.swift:61:64: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | queue.async {
60 | do {
61 | let response: APIResponse<SuggestedEdit> = try self.fetchSuggestedEdits(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | parameters: parameters,
63 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSuggestedEdits.swift:63:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | let response: APIResponse<SuggestedEdit> = try self.fetchSuggestedEdits(
62 | parameters: parameters,
63 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | )
65 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSuggestedEdits.swift:66:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<SuggestedEdit>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | )
65 |
66 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<SuggestedEdit>?, (any Error)?) -> ()' 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'
67 | } catch {
68 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSuggestedEdits.swift:127:64: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | queue.async {
126 | do {
127 | let response: APIResponse<SuggestedEdit> = try self.fetchSuggestedEdits(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | ids,
129 | parameters: parameters,
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSuggestedEdits.swift:130:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | ids,
129 | parameters: parameters,
130 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
131 | )
132 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSuggestedEdits.swift:133:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<SuggestedEdit>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
131 | )
132 |
133 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<SuggestedEdit>?, (any Error)?) -> ()' 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'
134 | } catch {
135 | completionHandler(nil, error)
[12/27] Compiling SwiftStack RequestsSuggestedEdits.swift
/host/spi-builder-workspace/Sources/SwiftStack/RequestsRevisions.swift:74:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | queue.async {
73 | do {
74 | let response: APIResponse<Revision> = try self.fetchRevisions(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | ids,
76 | parameters: parameters,
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsRevisions.swift:77:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | ids,
76 | parameters: parameters,
77 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | )
79 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsRevisions.swift:80:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Revision>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | )
79 |
80 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Revision>?, (any Error)?) -> ()' 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'
81 | } catch {
82 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSites.swift:60:55: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 |
59 | do {
60 | let response: APIResponse<Site> = try self.fetchSites(parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | completionHandler(response, nil)
62 | } catch {
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSites.swift:60:112: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 |
59 | do {
60 | let response: APIResponse<Site> = try self.fetchSites(parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | completionHandler(response, nil)
62 | } catch {
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSites.swift:61:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Site>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | do {
60 | let response: APIResponse<Site> = try self.fetchSites(parameters: parameters, backoffBehavior: backoffBehavior)
61 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Site>?, (any Error)?) -> ()' 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'
62 | } catch {
63 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSuggestedEdits.swift:61:64: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | queue.async {
60 | do {
61 | let response: APIResponse<SuggestedEdit> = try self.fetchSuggestedEdits(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | parameters: parameters,
63 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSuggestedEdits.swift:63:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | let response: APIResponse<SuggestedEdit> = try self.fetchSuggestedEdits(
62 | parameters: parameters,
63 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | )
65 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSuggestedEdits.swift:66:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<SuggestedEdit>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | )
65 |
66 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<SuggestedEdit>?, (any Error)?) -> ()' 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'
67 | } catch {
68 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSuggestedEdits.swift:127:64: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | queue.async {
126 | do {
127 | let response: APIResponse<SuggestedEdit> = try self.fetchSuggestedEdits(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | ids,
129 | parameters: parameters,
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSuggestedEdits.swift:130:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | ids,
129 | parameters: parameters,
130 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
131 | )
132 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsSuggestedEdits.swift:133:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<SuggestedEdit>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
131 | )
132 |
133 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<SuggestedEdit>?, (any Error)?) -> ()' 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'
134 | } catch {
135 | completionHandler(nil, error)
[13/27] Compiling SwiftStack DictionaryConvertible.swift
[14/27] Compiling SwiftStack JsonConvertible.swift
[15/27] Compiling SwiftStack JsonHelper.swift
[16/27] Compiling SwiftStack BadgeCount.swift
[17/27] Compiling SwiftStack Comment.swift
[18/27] Compiling SwiftStack Content.swift
[19/27] Compiling SwiftStack Revision.swift
[20/27] Compiling SwiftStack Site.swift
[21/27] Compiling SwiftStack String+HTMLEntities.swift
[22/27] Compiling SwiftStack RequestsAnswers.swift
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:58:57: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | queue.async {
57 | do {
58 | let response: APIResponse<Answer> = try self.fetchAnswers(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | parameters: parameters,
60 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:60:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | let response: APIResponse<Answer> = try self.fetchAnswers(
59 | parameters: parameters,
60 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | )
62 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:63:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Answer>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | )
62 |
63 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Answer>?, (any Error)?) -> ()' 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'
64 | } catch {
65 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:123:57: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | queue.async {
122 | do {
123 | let response: APIResponse<Answer> = try self.fetchAnswers(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | ids,
125 | parameters: parameters,
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:126:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | ids,
125 | parameters: parameters,
126 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
127 | )
128 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:129:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Answer>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
127 | )
128 |
129 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Answer>?, (any Error)?) -> ()' 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'
130 | } catch {
131 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:234:58: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
232 | queue.async {
233 | do {
234 | let response: APIResponse<Comment> = try self.fetchCommentsOn(answers: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
235 |
236 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:234:134: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
232 | queue.async {
233 | do {
234 | let response: APIResponse<Comment> = try self.fetchCommentsOn(answers: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
235 |
236 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:236:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Comment>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
234 | let response: APIResponse<Comment> = try self.fetchCommentsOn(answers: ids, parameters: parameters, backoffBehavior: backoffBehavior)
235 |
236 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Comment>?, (any Error)?) -> ()' 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'
237 | } catch {
238 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:341:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
339 | queue.async {
340 | do {
341 | let response: APIResponse<Question> = try self.fetchQuestionsOfAnswers(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
342 | ids,
343 | parameters: parameters,
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:344:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
342 | ids,
343 | parameters: parameters,
344 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
345 | )
346 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:347:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
345 | )
346 |
347 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
348 | } catch {
349 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsPrivileges.swift:61:60: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | queue.async {
60 | do {
61 | let response: APIResponse<Privilege> = try self.fetchPrivileges(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | parameters: parameters,
63 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsPrivileges.swift:63:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | let response: APIResponse<Privilege> = try self.fetchPrivileges(
62 | parameters: parameters,
63 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | )
65 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsPrivileges.swift:66:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Privilege>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | )
65 |
66 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Privilege>?, (any Error)?) -> ()' 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'
67 | } catch {
68 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:59:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | queue.async {
58 | do {
59 | let response: APIResponse<Question> = try self.fetchQuestions(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | parameters: parameters,
61 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:61:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | let response: APIResponse<Question> = try self.fetchQuestions(
60 | parameters: parameters,
61 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | )
63 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:64:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | )
63 |
64 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | } catch {
66 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:124:47: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | queue.async {
123 | do {
124 | let response: APIResponse<Question> = try self.fetchQuestions(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | ids,
126 | parameters: parameters,
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:127:23: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | ids,
126 | parameters: parameters,
127 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | )
129 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:130:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | )
129 |
130 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
131 | } catch {
132 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:235:57: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 | queue.async {
234 | do {
235 | let response: APIResponse<Answer> = try self.fetchAnswersOn(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
236 |
237 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:235:134: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 | queue.async {
234 | do {
235 | let response: APIResponse<Answer> = try self.fetchAnswersOn(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
236 |
237 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:237:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Answer>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
235 | let response: APIResponse<Answer> = try self.fetchAnswersOn(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
236 |
237 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Answer>?, (any Error)?) -> ()' 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'
238 | } catch {
239 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:341:58: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
339 | queue.async {
340 | do {
341 | let response: APIResponse<Comment> = try self.fetchCommentsOn(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
342 |
343 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:341:136: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
339 | queue.async {
340 | do {
341 | let response: APIResponse<Comment> = try self.fetchCommentsOn(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
342 |
343 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:343:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Comment>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
341 | let response: APIResponse<Comment> = try self.fetchCommentsOn(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
342 |
343 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Comment>?, (any Error)?) -> ()' 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'
344 | } catch {
345 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:447:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
445 | queue.async {
446 | do {
447 | let response: APIResponse<Question> = try self.fetchLinkedQuestionsTo(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
448 |
449 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:447:144: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
445 | queue.async {
446 | do {
447 | let response: APIResponse<Question> = try self.fetchLinkedQuestionsTo(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
448 |
449 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:449:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
447 | let response: APIResponse<Question> = try self.fetchLinkedQuestionsTo(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
448 |
449 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
450 | } catch {
451 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:553:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
551 | queue.async {
552 | do {
553 | let response: APIResponse<Question> = try self.fetchRelatedQuestionsTo(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
554 |
555 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:553:145: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
551 | queue.async {
552 | do {
553 | let response: APIResponse<Question> = try self.fetchRelatedQuestionsTo(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
554 |
555 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:555:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
553 | let response: APIResponse<Question> = try self.fetchRelatedQuestionsTo(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
554 |
555 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
556 | } catch {
557 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:659:68: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
657 | queue.async {
658 | do {
659 | let response: APIResponse<Question.Timeline> = try self.fetchTimelineOf(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
660 |
661 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:659:146: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
657 | queue.async {
658 | do {
659 | let response: APIResponse<Question.Timeline> = try self.fetchTimelineOf(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
660 |
661 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:661:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question.Timeline>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
659 | let response: APIResponse<Question.Timeline> = try self.fetchTimelineOf(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
660 |
661 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question.Timeline>?, (any Error)?) -> ()' 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'
662 | } catch {
663 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:753:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
751 | queue.async {
752 | do {
753 | let response: APIResponse<Question> = try self.fetchQuestions(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
754 | parameters: parameters,
755 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:755:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
753 | let response: APIResponse<Question> = try self.fetchQuestions(
754 | parameters: parameters,
755 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
756 | )
757 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:758:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
756 | )
757 |
758 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
759 | } catch {
760 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:812:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
810 | queue.async {
811 | do {
812 | let response: APIResponse<Question> = try self.fetchQuestions(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
813 | parameters: parameters,
814 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:814:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
812 | let response: APIResponse<Question> = try self.fetchQuestions(
813 | parameters: parameters,
814 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
815 | )
816 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:817:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
815 | )
816 |
817 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
818 | } catch {
819 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:871:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
869 | queue.async {
870 | do {
871 | let response: APIResponse<Question> = try self.fetchQuestions(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
872 | parameters: parameters,
873 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:873:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
871 | let response: APIResponse<Question> = try self.fetchQuestions(
872 | parameters: parameters,
873 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
874 | )
875 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:876:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
874 | )
875 |
876 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
877 | } catch {
878 | completionHandler(nil, error)
[23/27] Compiling SwiftStack RequestsPrivileges.swift
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:58:57: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | queue.async {
57 | do {
58 | let response: APIResponse<Answer> = try self.fetchAnswers(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | parameters: parameters,
60 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:60:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | let response: APIResponse<Answer> = try self.fetchAnswers(
59 | parameters: parameters,
60 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | )
62 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:63:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Answer>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | )
62 |
63 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Answer>?, (any Error)?) -> ()' 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'
64 | } catch {
65 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:123:57: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | queue.async {
122 | do {
123 | let response: APIResponse<Answer> = try self.fetchAnswers(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | ids,
125 | parameters: parameters,
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:126:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | ids,
125 | parameters: parameters,
126 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
127 | )
128 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:129:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Answer>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
127 | )
128 |
129 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Answer>?, (any Error)?) -> ()' 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'
130 | } catch {
131 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:234:58: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
232 | queue.async {
233 | do {
234 | let response: APIResponse<Comment> = try self.fetchCommentsOn(answers: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
235 |
236 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:234:134: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
232 | queue.async {
233 | do {
234 | let response: APIResponse<Comment> = try self.fetchCommentsOn(answers: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
235 |
236 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:236:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Comment>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
234 | let response: APIResponse<Comment> = try self.fetchCommentsOn(answers: ids, parameters: parameters, backoffBehavior: backoffBehavior)
235 |
236 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Comment>?, (any Error)?) -> ()' 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'
237 | } catch {
238 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:341:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
339 | queue.async {
340 | do {
341 | let response: APIResponse<Question> = try self.fetchQuestionsOfAnswers(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
342 | ids,
343 | parameters: parameters,
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:344:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
342 | ids,
343 | parameters: parameters,
344 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
345 | )
346 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:347:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
345 | )
346 |
347 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
348 | } catch {
349 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsPrivileges.swift:61:60: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | queue.async {
60 | do {
61 | let response: APIResponse<Privilege> = try self.fetchPrivileges(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | parameters: parameters,
63 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsPrivileges.swift:63:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | let response: APIResponse<Privilege> = try self.fetchPrivileges(
62 | parameters: parameters,
63 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | )
65 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsPrivileges.swift:66:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Privilege>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | )
65 |
66 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Privilege>?, (any Error)?) -> ()' 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'
67 | } catch {
68 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:59:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | queue.async {
58 | do {
59 | let response: APIResponse<Question> = try self.fetchQuestions(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | parameters: parameters,
61 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:61:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | let response: APIResponse<Question> = try self.fetchQuestions(
60 | parameters: parameters,
61 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | )
63 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:64:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | )
63 |
64 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | } catch {
66 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:124:47: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | queue.async {
123 | do {
124 | let response: APIResponse<Question> = try self.fetchQuestions(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | ids,
126 | parameters: parameters,
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:127:23: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | ids,
126 | parameters: parameters,
127 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | )
129 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:130:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | )
129 |
130 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
131 | } catch {
132 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:235:57: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 | queue.async {
234 | do {
235 | let response: APIResponse<Answer> = try self.fetchAnswersOn(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
236 |
237 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:235:134: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 | queue.async {
234 | do {
235 | let response: APIResponse<Answer> = try self.fetchAnswersOn(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
236 |
237 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:237:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Answer>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
235 | let response: APIResponse<Answer> = try self.fetchAnswersOn(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
236 |
237 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Answer>?, (any Error)?) -> ()' 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'
238 | } catch {
239 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:341:58: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
339 | queue.async {
340 | do {
341 | let response: APIResponse<Comment> = try self.fetchCommentsOn(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
342 |
343 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:341:136: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
339 | queue.async {
340 | do {
341 | let response: APIResponse<Comment> = try self.fetchCommentsOn(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
342 |
343 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:343:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Comment>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
341 | let response: APIResponse<Comment> = try self.fetchCommentsOn(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
342 |
343 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Comment>?, (any Error)?) -> ()' 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'
344 | } catch {
345 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:447:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
445 | queue.async {
446 | do {
447 | let response: APIResponse<Question> = try self.fetchLinkedQuestionsTo(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
448 |
449 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:447:144: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
445 | queue.async {
446 | do {
447 | let response: APIResponse<Question> = try self.fetchLinkedQuestionsTo(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
448 |
449 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:449:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
447 | let response: APIResponse<Question> = try self.fetchLinkedQuestionsTo(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
448 |
449 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
450 | } catch {
451 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:553:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
551 | queue.async {
552 | do {
553 | let response: APIResponse<Question> = try self.fetchRelatedQuestionsTo(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
554 |
555 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:553:145: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
551 | queue.async {
552 | do {
553 | let response: APIResponse<Question> = try self.fetchRelatedQuestionsTo(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
554 |
555 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:555:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
553 | let response: APIResponse<Question> = try self.fetchRelatedQuestionsTo(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
554 |
555 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
556 | } catch {
557 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:659:68: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
657 | queue.async {
658 | do {
659 | let response: APIResponse<Question.Timeline> = try self.fetchTimelineOf(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
660 |
661 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:659:146: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
657 | queue.async {
658 | do {
659 | let response: APIResponse<Question.Timeline> = try self.fetchTimelineOf(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
660 |
661 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:661:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question.Timeline>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
659 | let response: APIResponse<Question.Timeline> = try self.fetchTimelineOf(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
660 |
661 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question.Timeline>?, (any Error)?) -> ()' 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'
662 | } catch {
663 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:753:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
751 | queue.async {
752 | do {
753 | let response: APIResponse<Question> = try self.fetchQuestions(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
754 | parameters: parameters,
755 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:755:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
753 | let response: APIResponse<Question> = try self.fetchQuestions(
754 | parameters: parameters,
755 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
756 | )
757 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:758:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
756 | )
757 |
758 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
759 | } catch {
760 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:812:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
810 | queue.async {
811 | do {
812 | let response: APIResponse<Question> = try self.fetchQuestions(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
813 | parameters: parameters,
814 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:814:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
812 | let response: APIResponse<Question> = try self.fetchQuestions(
813 | parameters: parameters,
814 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
815 | )
816 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:817:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
815 | )
816 |
817 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
818 | } catch {
819 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:871:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
869 | queue.async {
870 | do {
871 | let response: APIResponse<Question> = try self.fetchQuestions(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
872 | parameters: parameters,
873 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:873:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
871 | let response: APIResponse<Question> = try self.fetchQuestions(
872 | parameters: parameters,
873 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
874 | )
875 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:876:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
874 | )
875 |
876 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
877 | } catch {
878 | completionHandler(nil, error)
[24/27] Compiling SwiftStack RequestsQuestions.swift
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:58:57: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | queue.async {
57 | do {
58 | let response: APIResponse<Answer> = try self.fetchAnswers(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | parameters: parameters,
60 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:60:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | let response: APIResponse<Answer> = try self.fetchAnswers(
59 | parameters: parameters,
60 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | )
62 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:63:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Answer>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | )
62 |
63 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Answer>?, (any Error)?) -> ()' 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'
64 | } catch {
65 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:123:57: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | queue.async {
122 | do {
123 | let response: APIResponse<Answer> = try self.fetchAnswers(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | ids,
125 | parameters: parameters,
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:126:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | ids,
125 | parameters: parameters,
126 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
127 | )
128 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:129:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Answer>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
127 | )
128 |
129 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Answer>?, (any Error)?) -> ()' 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'
130 | } catch {
131 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:234:58: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
232 | queue.async {
233 | do {
234 | let response: APIResponse<Comment> = try self.fetchCommentsOn(answers: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
235 |
236 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:234:134: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
232 | queue.async {
233 | do {
234 | let response: APIResponse<Comment> = try self.fetchCommentsOn(answers: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
235 |
236 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:236:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Comment>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
234 | let response: APIResponse<Comment> = try self.fetchCommentsOn(answers: ids, parameters: parameters, backoffBehavior: backoffBehavior)
235 |
236 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Comment>?, (any Error)?) -> ()' 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'
237 | } catch {
238 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:341:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
339 | queue.async {
340 | do {
341 | let response: APIResponse<Question> = try self.fetchQuestionsOfAnswers(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
342 | ids,
343 | parameters: parameters,
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:344:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
342 | ids,
343 | parameters: parameters,
344 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
345 | )
346 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsAnswers.swift:347:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
345 | )
346 |
347 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
348 | } catch {
349 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsPrivileges.swift:61:60: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | queue.async {
60 | do {
61 | let response: APIResponse<Privilege> = try self.fetchPrivileges(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | parameters: parameters,
63 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsPrivileges.swift:63:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | let response: APIResponse<Privilege> = try self.fetchPrivileges(
62 | parameters: parameters,
63 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | )
65 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsPrivileges.swift:66:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Privilege>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | )
65 |
66 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Privilege>?, (any Error)?) -> ()' 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'
67 | } catch {
68 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:59:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | queue.async {
58 | do {
59 | let response: APIResponse<Question> = try self.fetchQuestions(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | parameters: parameters,
61 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:61:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | let response: APIResponse<Question> = try self.fetchQuestions(
60 | parameters: parameters,
61 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | )
63 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:64:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | )
63 |
64 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | } catch {
66 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:124:47: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | queue.async {
123 | do {
124 | let response: APIResponse<Question> = try self.fetchQuestions(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | ids,
126 | parameters: parameters,
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:127:23: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | ids,
126 | parameters: parameters,
127 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | )
129 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:130:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | )
129 |
130 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
131 | } catch {
132 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:235:57: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 | queue.async {
234 | do {
235 | let response: APIResponse<Answer> = try self.fetchAnswersOn(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
236 |
237 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:235:134: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 | queue.async {
234 | do {
235 | let response: APIResponse<Answer> = try self.fetchAnswersOn(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
236 |
237 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:237:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Answer>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
235 | let response: APIResponse<Answer> = try self.fetchAnswersOn(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
236 |
237 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Answer>?, (any Error)?) -> ()' 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'
238 | } catch {
239 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:341:58: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
339 | queue.async {
340 | do {
341 | let response: APIResponse<Comment> = try self.fetchCommentsOn(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
342 |
343 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:341:136: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
339 | queue.async {
340 | do {
341 | let response: APIResponse<Comment> = try self.fetchCommentsOn(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
342 |
343 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:343:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Comment>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
341 | let response: APIResponse<Comment> = try self.fetchCommentsOn(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
342 |
343 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Comment>?, (any Error)?) -> ()' 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'
344 | } catch {
345 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:447:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
445 | queue.async {
446 | do {
447 | let response: APIResponse<Question> = try self.fetchLinkedQuestionsTo(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
448 |
449 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:447:144: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
445 | queue.async {
446 | do {
447 | let response: APIResponse<Question> = try self.fetchLinkedQuestionsTo(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
448 |
449 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:449:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
447 | let response: APIResponse<Question> = try self.fetchLinkedQuestionsTo(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
448 |
449 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
450 | } catch {
451 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:553:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
551 | queue.async {
552 | do {
553 | let response: APIResponse<Question> = try self.fetchRelatedQuestionsTo(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
554 |
555 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:553:145: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
551 | queue.async {
552 | do {
553 | let response: APIResponse<Question> = try self.fetchRelatedQuestionsTo(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
554 |
555 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:555:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
553 | let response: APIResponse<Question> = try self.fetchRelatedQuestionsTo(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
554 |
555 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
556 | } catch {
557 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:659:68: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
657 | queue.async {
658 | do {
659 | let response: APIResponse<Question.Timeline> = try self.fetchTimelineOf(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
660 |
661 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:659:146: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
657 | queue.async {
658 | do {
659 | let response: APIResponse<Question.Timeline> = try self.fetchTimelineOf(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
660 |
661 | completionHandler(response, nil)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:661:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question.Timeline>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
659 | let response: APIResponse<Question.Timeline> = try self.fetchTimelineOf(questions: ids, parameters: parameters, backoffBehavior: backoffBehavior)
660 |
661 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question.Timeline>?, (any Error)?) -> ()' 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'
662 | } catch {
663 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:753:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
751 | queue.async {
752 | do {
753 | let response: APIResponse<Question> = try self.fetchQuestions(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
754 | parameters: parameters,
755 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:755:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
753 | let response: APIResponse<Question> = try self.fetchQuestions(
754 | parameters: parameters,
755 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
756 | )
757 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:758:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
756 | )
757 |
758 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
759 | } catch {
760 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:812:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
810 | queue.async {
811 | do {
812 | let response: APIResponse<Question> = try self.fetchQuestions(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
813 | parameters: parameters,
814 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:814:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
812 | let response: APIResponse<Question> = try self.fetchQuestions(
813 | parameters: parameters,
814 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
815 | )
816 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:817:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
815 | )
816 |
817 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
818 | } catch {
819 | completionHandler(nil, error)
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:871:59: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
869 | queue.async {
870 | do {
871 | let response: APIResponse<Question> = try self.fetchQuestions(
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
872 | parameters: parameters,
873 | backoffBehavior: backoffBehavior
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: note: class 'APIClient' does not conform to the 'Sendable' protocol
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:873:38: warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
871 | let response: APIResponse<Question> = try self.fetchQuestions(
872 | parameters: parameters,
873 | backoffBehavior: backoffBehavior
| `- warning: capture of 'backoffBehavior' with non-sendable type 'APIClient.BackoffBehavior' in a `@Sendable` closure; this is an error in the Swift 6 language mode
874 | )
875 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:92:14: note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
90 | }
91 |
92 | public enum BackoffBehavior {
| `- note: consider making enum 'BackoffBehavior' conform to the 'Sendable' protocol
93 | case wait
94 | case throwError
/host/spi-builder-workspace/Sources/SwiftStack/RequestsQuestions.swift:876:17: warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
874 | )
875 |
876 | completionHandler(response, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(APIResponse<Question>?, (any Error)?) -> ()' 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'
877 | } catch {
878 | completionHandler(nil, error)
[25/27] Compiling SwiftStack APIClient.swift
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:219:15: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
:
217 | //TODO: I don't think this needs to be on the client queue anymore
218 | queue.async {
219 | let task = self.session.dataTask(with: req)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:219:43: warning: capture of 'req' with non-sendable type 'URLRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
217 | //TODO: I don't think this needs to be on the client queue anymore
218 | queue.async {
219 | let task = self.session.dataTask(with: req)
| `- warning: capture of 'req' with non-sendable type 'URLRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
FoundationNetworking.URLRequest:1:15: note: struct 'URLRequest' does not conform to the 'Sendable' protocol
1 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable {
| `- note: struct 'URLRequest' does not conform to the 'Sendable' protocol
2 | public typealias ReferenceType = NSURLRequest
3 | public typealias CachePolicy = NSURLRequest.CachePolicy
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FoundationNetworking'
11 |
12 | #if os(Linux)
13 | import FoundationNetworking
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FoundationNetworking'
14 | #endif
15 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:221:12: warning: capture of 'resp' with non-sendable type 'URLResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
219 | let task = self.session.dataTask(with: req)
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
| `- warning: capture of 'resp' with non-sendable type 'URLResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
222 | sema.signal()
223 | }
FoundationNetworking.URLResponse:1:12: note: class 'URLResponse' does not conform to the 'Sendable' protocol
1 | open class URLResponse : NSObject, NSSecureCoding, NSCopying {
| `- note: class 'URLResponse' does not conform to the 'Sendable' protocol
2 | public static var supportsSecureCoding: Bool { get }
3 | required public init?(coder aDecoder: NSCoder)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:221:12: warning: capture of 'resp' with non-sendable type 'URLResponse?' in an isolated closure; this is an error in the Swift 6 language mode
219 | let task = self.session.dataTask(with: req)
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
| `- warning: capture of 'resp' with non-sendable type 'URLResponse?' in an isolated closure; this is an error in the Swift 6 language mode
222 | sema.signal()
223 | }
FoundationNetworking.URLResponse:1:12: note: class 'URLResponse' does not conform to the 'Sendable' protocol
1 | open class URLResponse : NSObject, NSSecureCoding, NSCopying {
| `- note: class 'URLResponse' does not conform to the 'Sendable' protocol
2 | public static var supportsSecureCoding: Bool { get }
3 | required public init?(coder aDecoder: NSCoder)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:221:6: warning: mutation of captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
219 | let task = self.session.dataTask(with: req)
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
| `- warning: mutation of captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
222 | sema.signal()
223 | }
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:221:12: warning: mutation of captured var 'resp' in concurrently-executing code; this is an error in the Swift 6 language mode
219 | let task = self.session.dataTask(with: req)
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
| `- warning: mutation of captured var 'resp' in concurrently-executing code; this is an error in the Swift 6 language mode
222 | sema.signal()
223 | }
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:221:18: warning: mutation of captured var 'error' in concurrently-executing code; this is an error in the Swift 6 language mode
219 | let task = self.session.dataTask(with: req)
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
| `- warning: mutation of captured var 'error' in concurrently-executing code; this is an error in the Swift 6 language mode
222 | sema.signal()
223 | }
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:275:15: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
:
273 |
274 | queue.async {
275 | let task = self.session.uploadTask(with: request, from: data)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:275:45: warning: capture of 'request' with non-sendable type 'URLRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
273 |
274 | queue.async {
275 | let task = self.session.uploadTask(with: request, from: data)
| `- warning: capture of 'request' with non-sendable type 'URLRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
FoundationNetworking.URLRequest:1:15: note: struct 'URLRequest' does not conform to the 'Sendable' protocol
1 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable {
| `- note: struct 'URLRequest' does not conform to the 'Sendable' protocol
2 | public typealias ReferenceType = NSURLRequest
3 | public typealias CachePolicy = NSURLRequest.CachePolicy
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:277:20: warning: capture of 'resp' with non-sendable type 'HTTPURLResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
275 | let task = self.session.uploadTask(with: request, from: data)
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
| `- warning: capture of 'resp' with non-sendable type 'HTTPURLResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
278 | sema.signal()
279 | }
FoundationNetworking.HTTPURLResponse:1:12: note: class 'HTTPURLResponse' does not conform to the 'Sendable' protocol
1 | open class HTTPURLResponse : URLResponse {
| `- note: class 'HTTPURLResponse' does not conform to the 'Sendable' protocol
2 | public init?(url: URL, statusCode: Int, httpVersion: String?, headerFields: [String : String]?)
3 | required public init?(coder aDecoder: NSCoder)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:275:45: warning: reference to captured var 'request' in concurrently-executing code; this is an error in the Swift 6 language mode
273 |
274 | queue.async {
275 | let task = self.session.uploadTask(with: request, from: data)
| `- warning: reference to captured var 'request' in concurrently-executing code; this is an error in the Swift 6 language mode
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:276:36: warning: reference to captured var 'request' in concurrently-executing code; this is an error in the Swift 6 language mode
274 | queue.async {
275 | let task = self.session.uploadTask(with: request, from: data)
276 | self.performTask(task, request: request) {data, response, error in
| `- warning: reference to captured var 'request' in concurrently-executing code; this is an error in the Swift 6 language mode
277 | (responseData, resp, responseError) = (data, response, error)
278 | sema.signal()
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:277:20: warning: capture of 'resp' with non-sendable type 'HTTPURLResponse?' in an isolated closure; this is an error in the Swift 6 language mode
275 | let task = self.session.uploadTask(with: request, from: data)
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
| `- warning: capture of 'resp' with non-sendable type 'HTTPURLResponse?' in an isolated closure; this is an error in the Swift 6 language mode
278 | sema.signal()
279 | }
FoundationNetworking.HTTPURLResponse:1:12: note: class 'HTTPURLResponse' does not conform to the 'Sendable' protocol
1 | open class HTTPURLResponse : URLResponse {
| `- note: class 'HTTPURLResponse' does not conform to the 'Sendable' protocol
2 | public init?(url: URL, statusCode: Int, httpVersion: String?, headerFields: [String : String]?)
3 | required public init?(coder aDecoder: NSCoder)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:277:6: warning: mutation of captured var 'responseData' in concurrently-executing code; this is an error in the Swift 6 language mode
275 | let task = self.session.uploadTask(with: request, from: data)
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
| `- warning: mutation of captured var 'responseData' in concurrently-executing code; this is an error in the Swift 6 language mode
278 | sema.signal()
279 | }
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:277:20: warning: mutation of captured var 'resp' in concurrently-executing code; this is an error in the Swift 6 language mode
275 | let task = self.session.uploadTask(with: request, from: data)
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
| `- warning: mutation of captured var 'resp' in concurrently-executing code; this is an error in the Swift 6 language mode
278 | sema.signal()
279 | }
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:277:26: warning: mutation of captured var 'responseError' in concurrently-executing code; this is an error in the Swift 6 language mode
275 | let task = self.session.uploadTask(with: request, from: data)
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
| `- warning: mutation of captured var 'responseError' in concurrently-executing code; this is an error in the Swift 6 language mode
278 | sema.signal()
279 | }
[26/27] Compiling SwiftStack APIResponse.swift
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:219:15: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
:
217 | //TODO: I don't think this needs to be on the client queue anymore
218 | queue.async {
219 | let task = self.session.dataTask(with: req)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:219:43: warning: capture of 'req' with non-sendable type 'URLRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
217 | //TODO: I don't think this needs to be on the client queue anymore
218 | queue.async {
219 | let task = self.session.dataTask(with: req)
| `- warning: capture of 'req' with non-sendable type 'URLRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
FoundationNetworking.URLRequest:1:15: note: struct 'URLRequest' does not conform to the 'Sendable' protocol
1 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable {
| `- note: struct 'URLRequest' does not conform to the 'Sendable' protocol
2 | public typealias ReferenceType = NSURLRequest
3 | public typealias CachePolicy = NSURLRequest.CachePolicy
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FoundationNetworking'
11 |
12 | #if os(Linux)
13 | import FoundationNetworking
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FoundationNetworking'
14 | #endif
15 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:221:12: warning: capture of 'resp' with non-sendable type 'URLResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
219 | let task = self.session.dataTask(with: req)
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
| `- warning: capture of 'resp' with non-sendable type 'URLResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
222 | sema.signal()
223 | }
FoundationNetworking.URLResponse:1:12: note: class 'URLResponse' does not conform to the 'Sendable' protocol
1 | open class URLResponse : NSObject, NSSecureCoding, NSCopying {
| `- note: class 'URLResponse' does not conform to the 'Sendable' protocol
2 | public static var supportsSecureCoding: Bool { get }
3 | required public init?(coder aDecoder: NSCoder)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:221:12: warning: capture of 'resp' with non-sendable type 'URLResponse?' in an isolated closure; this is an error in the Swift 6 language mode
219 | let task = self.session.dataTask(with: req)
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
| `- warning: capture of 'resp' with non-sendable type 'URLResponse?' in an isolated closure; this is an error in the Swift 6 language mode
222 | sema.signal()
223 | }
FoundationNetworking.URLResponse:1:12: note: class 'URLResponse' does not conform to the 'Sendable' protocol
1 | open class URLResponse : NSObject, NSSecureCoding, NSCopying {
| `- note: class 'URLResponse' does not conform to the 'Sendable' protocol
2 | public static var supportsSecureCoding: Bool { get }
3 | required public init?(coder aDecoder: NSCoder)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:221:6: warning: mutation of captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
219 | let task = self.session.dataTask(with: req)
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
| `- warning: mutation of captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
222 | sema.signal()
223 | }
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:221:12: warning: mutation of captured var 'resp' in concurrently-executing code; this is an error in the Swift 6 language mode
219 | let task = self.session.dataTask(with: req)
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
| `- warning: mutation of captured var 'resp' in concurrently-executing code; this is an error in the Swift 6 language mode
222 | sema.signal()
223 | }
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:221:18: warning: mutation of captured var 'error' in concurrently-executing code; this is an error in the Swift 6 language mode
219 | let task = self.session.dataTask(with: req)
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
| `- warning: mutation of captured var 'error' in concurrently-executing code; this is an error in the Swift 6 language mode
222 | sema.signal()
223 | }
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:275:15: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
:
273 |
274 | queue.async {
275 | let task = self.session.uploadTask(with: request, from: data)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:275:45: warning: capture of 'request' with non-sendable type 'URLRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
273 |
274 | queue.async {
275 | let task = self.session.uploadTask(with: request, from: data)
| `- warning: capture of 'request' with non-sendable type 'URLRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
FoundationNetworking.URLRequest:1:15: note: struct 'URLRequest' does not conform to the 'Sendable' protocol
1 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable {
| `- note: struct 'URLRequest' does not conform to the 'Sendable' protocol
2 | public typealias ReferenceType = NSURLRequest
3 | public typealias CachePolicy = NSURLRequest.CachePolicy
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:277:20: warning: capture of 'resp' with non-sendable type 'HTTPURLResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
275 | let task = self.session.uploadTask(with: request, from: data)
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
| `- warning: capture of 'resp' with non-sendable type 'HTTPURLResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
278 | sema.signal()
279 | }
FoundationNetworking.HTTPURLResponse:1:12: note: class 'HTTPURLResponse' does not conform to the 'Sendable' protocol
1 | open class HTTPURLResponse : URLResponse {
| `- note: class 'HTTPURLResponse' does not conform to the 'Sendable' protocol
2 | public init?(url: URL, statusCode: Int, httpVersion: String?, headerFields: [String : String]?)
3 | required public init?(coder aDecoder: NSCoder)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:275:45: warning: reference to captured var 'request' in concurrently-executing code; this is an error in the Swift 6 language mode
273 |
274 | queue.async {
275 | let task = self.session.uploadTask(with: request, from: data)
| `- warning: reference to captured var 'request' in concurrently-executing code; this is an error in the Swift 6 language mode
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:276:36: warning: reference to captured var 'request' in concurrently-executing code; this is an error in the Swift 6 language mode
274 | queue.async {
275 | let task = self.session.uploadTask(with: request, from: data)
276 | self.performTask(task, request: request) {data, response, error in
| `- warning: reference to captured var 'request' in concurrently-executing code; this is an error in the Swift 6 language mode
277 | (responseData, resp, responseError) = (data, response, error)
278 | sema.signal()
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:277:20: warning: capture of 'resp' with non-sendable type 'HTTPURLResponse?' in an isolated closure; this is an error in the Swift 6 language mode
275 | let task = self.session.uploadTask(with: request, from: data)
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
| `- warning: capture of 'resp' with non-sendable type 'HTTPURLResponse?' in an isolated closure; this is an error in the Swift 6 language mode
278 | sema.signal()
279 | }
FoundationNetworking.HTTPURLResponse:1:12: note: class 'HTTPURLResponse' does not conform to the 'Sendable' protocol
1 | open class HTTPURLResponse : URLResponse {
| `- note: class 'HTTPURLResponse' does not conform to the 'Sendable' protocol
2 | public init?(url: URL, statusCode: Int, httpVersion: String?, headerFields: [String : String]?)
3 | required public init?(coder aDecoder: NSCoder)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:277:6: warning: mutation of captured var 'responseData' in concurrently-executing code; this is an error in the Swift 6 language mode
275 | let task = self.session.uploadTask(with: request, from: data)
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
| `- warning: mutation of captured var 'responseData' in concurrently-executing code; this is an error in the Swift 6 language mode
278 | sema.signal()
279 | }
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:277:20: warning: mutation of captured var 'resp' in concurrently-executing code; this is an error in the Swift 6 language mode
275 | let task = self.session.uploadTask(with: request, from: data)
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
| `- warning: mutation of captured var 'resp' in concurrently-executing code; this is an error in the Swift 6 language mode
278 | sema.signal()
279 | }
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:277:26: warning: mutation of captured var 'responseError' in concurrently-executing code; this is an error in the Swift 6 language mode
275 | let task = self.session.uploadTask(with: request, from: data)
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
| `- warning: mutation of captured var 'responseError' in concurrently-executing code; this is an error in the Swift 6 language mode
278 | sema.signal()
279 | }
[27/27] Compiling SwiftStack Answer.swift
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:219:15: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
:
217 | //TODO: I don't think this needs to be on the client queue anymore
218 | queue.async {
219 | let task = self.session.dataTask(with: req)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:219:43: warning: capture of 'req' with non-sendable type 'URLRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
217 | //TODO: I don't think this needs to be on the client queue anymore
218 | queue.async {
219 | let task = self.session.dataTask(with: req)
| `- warning: capture of 'req' with non-sendable type 'URLRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
FoundationNetworking.URLRequest:1:15: note: struct 'URLRequest' does not conform to the 'Sendable' protocol
1 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable {
| `- note: struct 'URLRequest' does not conform to the 'Sendable' protocol
2 | public typealias ReferenceType = NSURLRequest
3 | public typealias CachePolicy = NSURLRequest.CachePolicy
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FoundationNetworking'
11 |
12 | #if os(Linux)
13 | import FoundationNetworking
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FoundationNetworking'
14 | #endif
15 |
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:221:12: warning: capture of 'resp' with non-sendable type 'URLResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
219 | let task = self.session.dataTask(with: req)
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
| `- warning: capture of 'resp' with non-sendable type 'URLResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
222 | sema.signal()
223 | }
FoundationNetworking.URLResponse:1:12: note: class 'URLResponse' does not conform to the 'Sendable' protocol
1 | open class URLResponse : NSObject, NSSecureCoding, NSCopying {
| `- note: class 'URLResponse' does not conform to the 'Sendable' protocol
2 | public static var supportsSecureCoding: Bool { get }
3 | required public init?(coder aDecoder: NSCoder)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:221:12: warning: capture of 'resp' with non-sendable type 'URLResponse?' in an isolated closure; this is an error in the Swift 6 language mode
219 | let task = self.session.dataTask(with: req)
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
| `- warning: capture of 'resp' with non-sendable type 'URLResponse?' in an isolated closure; this is an error in the Swift 6 language mode
222 | sema.signal()
223 | }
FoundationNetworking.URLResponse:1:12: note: class 'URLResponse' does not conform to the 'Sendable' protocol
1 | open class URLResponse : NSObject, NSSecureCoding, NSCopying {
| `- note: class 'URLResponse' does not conform to the 'Sendable' protocol
2 | public static var supportsSecureCoding: Bool { get }
3 | required public init?(coder aDecoder: NSCoder)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:221:6: warning: mutation of captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
219 | let task = self.session.dataTask(with: req)
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
| `- warning: mutation of captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
222 | sema.signal()
223 | }
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:221:12: warning: mutation of captured var 'resp' in concurrently-executing code; this is an error in the Swift 6 language mode
219 | let task = self.session.dataTask(with: req)
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
| `- warning: mutation of captured var 'resp' in concurrently-executing code; this is an error in the Swift 6 language mode
222 | sema.signal()
223 | }
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:221:18: warning: mutation of captured var 'error' in concurrently-executing code; this is an error in the Swift 6 language mode
219 | let task = self.session.dataTask(with: req)
220 | self.performTask(task, request: req) {inData, inResp, inError in
221 | (data, resp, error) = (inData, inResp, inError)
| `- warning: mutation of captured var 'error' in concurrently-executing code; this is an error in the Swift 6 language mode
222 | sema.signal()
223 | }
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:275:15: warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 |
37 | ///An APIClient communicates to the Stack Exchange API over HTTP.
38 | open class APIClient: NSObject, URLSessionDataDelegate {
| `- note: class 'APIClient' does not conform to the 'Sendable' protocol
39 | //MARK: Instance variables and types.
40 |
:
273 |
274 | queue.async {
275 | let task = self.session.uploadTask(with: request, from: data)
| `- warning: capture of 'self' with non-sendable type 'APIClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:275:45: warning: capture of 'request' with non-sendable type 'URLRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
273 |
274 | queue.async {
275 | let task = self.session.uploadTask(with: request, from: data)
| `- warning: capture of 'request' with non-sendable type 'URLRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
FoundationNetworking.URLRequest:1:15: note: struct 'URLRequest' does not conform to the 'Sendable' protocol
1 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable {
| `- note: struct 'URLRequest' does not conform to the 'Sendable' protocol
2 | public typealias ReferenceType = NSURLRequest
3 | public typealias CachePolicy = NSURLRequest.CachePolicy
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:277:20: warning: capture of 'resp' with non-sendable type 'HTTPURLResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
275 | let task = self.session.uploadTask(with: request, from: data)
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
| `- warning: capture of 'resp' with non-sendable type 'HTTPURLResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
278 | sema.signal()
279 | }
FoundationNetworking.HTTPURLResponse:1:12: note: class 'HTTPURLResponse' does not conform to the 'Sendable' protocol
1 | open class HTTPURLResponse : URLResponse {
| `- note: class 'HTTPURLResponse' does not conform to the 'Sendable' protocol
2 | public init?(url: URL, statusCode: Int, httpVersion: String?, headerFields: [String : String]?)
3 | required public init?(coder aDecoder: NSCoder)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:275:45: warning: reference to captured var 'request' in concurrently-executing code; this is an error in the Swift 6 language mode
273 |
274 | queue.async {
275 | let task = self.session.uploadTask(with: request, from: data)
| `- warning: reference to captured var 'request' in concurrently-executing code; this is an error in the Swift 6 language mode
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:276:36: warning: reference to captured var 'request' in concurrently-executing code; this is an error in the Swift 6 language mode
274 | queue.async {
275 | let task = self.session.uploadTask(with: request, from: data)
276 | self.performTask(task, request: request) {data, response, error in
| `- warning: reference to captured var 'request' in concurrently-executing code; this is an error in the Swift 6 language mode
277 | (responseData, resp, responseError) = (data, response, error)
278 | sema.signal()
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:277:20: warning: capture of 'resp' with non-sendable type 'HTTPURLResponse?' in an isolated closure; this is an error in the Swift 6 language mode
275 | let task = self.session.uploadTask(with: request, from: data)
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
| `- warning: capture of 'resp' with non-sendable type 'HTTPURLResponse?' in an isolated closure; this is an error in the Swift 6 language mode
278 | sema.signal()
279 | }
FoundationNetworking.HTTPURLResponse:1:12: note: class 'HTTPURLResponse' does not conform to the 'Sendable' protocol
1 | open class HTTPURLResponse : URLResponse {
| `- note: class 'HTTPURLResponse' does not conform to the 'Sendable' protocol
2 | public init?(url: URL, statusCode: Int, httpVersion: String?, headerFields: [String : String]?)
3 | required public init?(coder aDecoder: NSCoder)
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:277:6: warning: mutation of captured var 'responseData' in concurrently-executing code; this is an error in the Swift 6 language mode
275 | let task = self.session.uploadTask(with: request, from: data)
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
| `- warning: mutation of captured var 'responseData' in concurrently-executing code; this is an error in the Swift 6 language mode
278 | sema.signal()
279 | }
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:277:20: warning: mutation of captured var 'resp' in concurrently-executing code; this is an error in the Swift 6 language mode
275 | let task = self.session.uploadTask(with: request, from: data)
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
| `- warning: mutation of captured var 'resp' in concurrently-executing code; this is an error in the Swift 6 language mode
278 | sema.signal()
279 | }
/host/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:277:26: warning: mutation of captured var 'responseError' in concurrently-executing code; this is an error in the Swift 6 language mode
275 | let task = self.session.uploadTask(with: request, from: data)
276 | self.performTask(task, request: request) {data, response, error in
277 | (responseData, resp, responseError) = (data, response, error)
| `- warning: mutation of captured var 'responseError' in concurrently-executing code; this is an error in the Swift 6 language mode
278 | sema.signal()
279 | }
Build complete! (12.32s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftStack",
"name" : "SwiftStack",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftStack",
"targets" : [
"SwiftStack"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftStackTests",
"module_type" : "SwiftTarget",
"name" : "SwiftStackTests",
"path" : "Tests/SwiftStackTests",
"sources" : [
"APITests.swift",
"AnswersTests.swift",
"BasicRequestTests.swift",
"JsonHelperTests.swift",
"PostTests.swift",
"PrivilegesTests.swift",
"QuestionTests.swift",
"SiteTests.swift",
"UserTests.swift"
],
"target_dependencies" : [
"SwiftStack"
],
"type" : "test"
},
{
"c99name" : "SwiftStack",
"module_type" : "SwiftTarget",
"name" : "SwiftStack",
"path" : "Sources/SwiftStack",
"product_memberships" : [
"SwiftStack"
],
"sources" : [
"APIClient.swift",
"APIResponse.swift",
"Answer.swift",
"BadgeCount.swift",
"Comment.swift",
"Content.swift",
"DictionaryConvertible.swift",
"JsonConvertible.swift",
"JsonHelper.swift",
"Post.swift",
"Privilege.swift",
"Question.swift",
"RequestsAnswers.swift",
"RequestsPrivileges.swift",
"RequestsQuestions.swift",
"RequestsRevisions.swift",
"RequestsSites.swift",
"RequestsSuggestedEdits.swift",
"Revision.swift",
"Site.swift",
"String+HTMLEntities.swift",
"StringRepresentable.swift",
"SuggestedEdit.swift",
"User.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Done.