Build Information
Successful build of SwiftStack, reference 0.6.0 (3ed8ed
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 05:54:18 UTC.
Swift 6 data race errors: 2
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sobotics/swiftstack.git
Reference: 0.6.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sobotics/swiftstack
* tag 0.6.0 -> FETCH_HEAD
HEAD is now at 3ed8edd [tests] import FoundationNetworking
Cloned https://github.com/sobotics/swiftstack.git
Revision (git rev-parse @):
3ed8eddf8bcf3984d8e7a8b9890802b544f4ef28
SUCCESS checkout https://github.com/sobotics/swiftstack.git at 0.6.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftstack",
"name": "SwiftStack",
"url": "https://github.com/sobotics/swiftstack.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftstack",
"dependencies": [
]
}
]
}
Fetching https://github.com/sobotics/swiftstack.git
[1/1112] Fetching swiftstack
Fetched https://github.com/sobotics/swiftstack.git from cache (1.04s)
Creating working copy for https://github.com/sobotics/swiftstack.git
Working copy of https://github.com/sobotics/swiftstack.git resolved at 0.6.0 (3ed8edd)
warning: '.resolve-product-dependencies': dependency 'swiftstack' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/sobotics/swiftstack.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/25] Emitting module SwiftStack
/Users/admin/builder/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: warning: non-final class 'APIClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; 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 {
| `- warning: non-final class 'APIClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
39 | //MARK: Instance variables and types.
40 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:42:11: warning: stored property 'session' of 'Sendable'-conforming class 'APIClient' is mutable; this is an error in the Swift 6 language mode
40 |
41 | ///The URLSession for this client.
42 | open var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'APIClient' is mutable; this is an error in the Swift 6 language mode
43 |
44 | ///The queue used for asynchronous operations.
[4/27] Compiling SwiftStack SuggestedEdit.swift
[5/27] Compiling SwiftStack User.swift
[6/27] Compiling SwiftStack Revision.swift
[7/27] Compiling SwiftStack Site.swift
[8/27] Compiling SwiftStack RequestsQuestions.swift
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
[9/27] Compiling SwiftStack RequestsRevisions.swift
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
[10/27] Compiling SwiftStack String+HTMLEntities.swift
[11/27] Compiling SwiftStack StringRepresentable.swift
[12/27] Compiling SwiftStack BadgeCount.swift
[13/27] Compiling SwiftStack Comment.swift
[14/27] Compiling SwiftStack Content.swift
[15/27] Compiling SwiftStack APIClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: warning: non-final class 'APIClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; 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 {
| `- warning: non-final class 'APIClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
39 | //MARK: Instance variables and types.
40 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:42:11: warning: stored property 'session' of 'Sendable'-conforming class 'APIClient' is mutable; this is an error in the Swift 6 language mode
40 |
41 | ///The URLSession for this client.
42 | open var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'APIClient' is mutable; this is an error in the Swift 6 language mode
43 |
44 | ///The queue used for asynchronous operations.
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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)
/Users/admin/builder/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()
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
[16/27] Compiling SwiftStack APIResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: warning: non-final class 'APIClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; 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 {
| `- warning: non-final class 'APIClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
39 | //MARK: Instance variables and types.
40 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:42:11: warning: stored property 'session' of 'Sendable'-conforming class 'APIClient' is mutable; this is an error in the Swift 6 language mode
40 |
41 | ///The URLSession for this client.
42 | open var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'APIClient' is mutable; this is an error in the Swift 6 language mode
43 |
44 | ///The queue used for asynchronous operations.
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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)
/Users/admin/builder/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()
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
[17/27] Compiling SwiftStack Answer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:38:12: warning: non-final class 'APIClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; 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 {
| `- warning: non-final class 'APIClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
39 | //MARK: Instance variables and types.
40 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftStack/APIClient.swift:42:11: warning: stored property 'session' of 'Sendable'-conforming class 'APIClient' is mutable; this is an error in the Swift 6 language mode
40 |
41 | ///The URLSession for this client.
42 | open var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'APIClient' is mutable; this is an error in the Swift 6 language mode
43 |
44 | ///The queue used for asynchronous operations.
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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)
/Users/admin/builder/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()
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
[18/27] Compiling SwiftStack RequestsAnswers.swift
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
[19/27] Compiling SwiftStack RequestsPrivileges.swift
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
[20/27] Compiling SwiftStack RequestsSites.swift
/Users/admin/builder/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 {
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
[21/27] Compiling SwiftStack RequestsSuggestedEdits.swift
/Users/admin/builder/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 {
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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)
[22/27] Compiling SwiftStack Post.swift
[23/27] Compiling SwiftStack Privilege.swift
[24/27] Compiling SwiftStack Question.swift
[25/27] Compiling SwiftStack DictionaryConvertible.swift
[26/27] Compiling SwiftStack JsonConvertible.swift
[27/27] Compiling SwiftStack JsonHelper.swift
Build complete! (17.61s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftStack",
"name" : "SwiftStack",
"path" : "/Users/admin/builder/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.