Build Information
Failed to build ParseSwift, reference 4.14.2 (dc7666
), with Swift 6.0 for Linux on 2 Nov 2024 17:57:04 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" 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
139 | }
140 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:152:53: warning: converting a value of type '(__shared sending Result<([T], Int), ParseError>) -> ()' to type '(Result<([T], Int), ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
150 | try await withCheckedThrowingContinuation { continuation in
151 | self.withCount(options: options,
152 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<([T], Int), ParseError>) -> ()' to type '(Result<([T], Int), ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
153 | }
154 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:175:60: warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
173 | self.withCountExplain(usingMongoDB: usingMongoDB,
174 | options: options,
175 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
176 | }
177 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:194:53: warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
192 | self.aggregate(pipeline,
193 | options: options,
194 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
195 | }
196 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:223:60: warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
221 | usingMongoDB: usingMongoDB,
222 | options: options,
223 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
224 | }
225 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:242:52: warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
240 | self.distinct(key,
241 | options: options,
242 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
243 | }
244 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:271:59: warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
269 | usingMongoDB: usingMongoDB,
270 | options: options,
271 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
272 | }
273 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:48:26: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
13 | The `Query` class defines a query that is used to query for `ParseObject`s.
14 | */
15 | public struct Query<T>: ParseTypeable where T: ParseObject {
| `- note: 'T' previously declared here
16 | // interpolate as GET
17 | private let method: String = "GET"
:
46 | }
47 |
48 | struct AggregateBody<T>: Codable where T: ParseObject {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
49 | let pipeline: [[String: AnyCodable]]?
50 | let hint: AnyCodable?
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:79:25: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
13 | The `Query` class defines a query that is used to query for `ParseObject`s.
14 | */
15 | public struct Query<T>: ParseTypeable where T: ParseObject {
| `- note: 'T' previously declared here
16 | // interpolate as GET
17 | private let method: String = "GET"
:
77 | }
78 |
79 | struct DistinctBody<T>: Codable where T: ParseObject {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
80 | let hint: AnyCodable?
81 | let explain: Bool?
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:544:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
542 | if limit == 0 {
543 | callbackQueue.async {
544 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
545 | }
546 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:557:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
555 | message: error.localizedDescription)
556 | callbackQueue.async {
557 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
558 | }
559 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:583:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
581 | if limit == 0 {
582 | callbackQueue.async {
583 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
584 | }
585 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:597:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
595 | message: error.localizedDescription)
596 | callbackQueue.async {
597 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
598 | }
599 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:610:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
608 | message: error.localizedDescription)
609 | callbackQueue.async {
610 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
611 | }
612 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:635:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
633 | if self.limit == 0 {
634 | callbackQueue.async {
635 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
636 | }
637 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:676:25: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
674 | let parseError = error as? ParseError ?? defaultError
675 | callbackQueue.async {
676 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
677 | }
678 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:683:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
681 |
682 | callbackQueue.async {
683 | completion(.success(results))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
684 | }
685 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:683:37: warning: capture of 'results' with non-sendable type '[Query<T>.ResultType]' (aka 'Array<T>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | The `Query` class defines a query that is used to query for `ParseObject`s.
14 | */
15 | public struct Query<T>: ParseTypeable where T: ParseObject {
| `- note: consider making generic parameter 'Query<T>.ResultType' (aka 'T') conform to the 'Sendable' protocol
16 | // interpolate as GET
17 | private let method: String = "GET"
:
681 |
682 | callbackQueue.async {
683 | completion(.success(results))
| `- warning: capture of 'results' with non-sendable type '[Query<T>.ResultType]' (aka 'Array<T>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
684 | }
685 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:683:37: warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
681 |
682 | callbackQueue.async {
683 | completion(.success(results))
| `- warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
684 | }
685 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:751:17: warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
749 | message: "Object not found on the server.")
750 | callbackQueue.async {
751 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') 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'
752 | }
753 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:764:17: warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
762 | message: error.localizedDescription)
763 | callbackQueue.async {
764 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') 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'
765 | }
766 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:794:17: warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
792 | message: "Object not found on the server.")
793 | callbackQueue.async {
794 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
795 | }
796 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:808:21: warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
806 | message: error.localizedDescription)
807 | callbackQueue.async {
808 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
809 | }
810 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:821:21: warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
819 | message: error.localizedDescription)
820 | callbackQueue.async {
821 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
822 | }
823 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:881:17: warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
879 | if limit == 0 {
880 | callbackQueue.async {
881 | completion(.success(0))
| |- warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
882 | }
883 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:894:17: warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
892 | message: error.localizedDescription)
893 | callbackQueue.async {
894 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
895 | }
896 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:920:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
918 | if limit == 0 {
919 | callbackQueue.async {
920 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
921 | }
922 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:934:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
932 | message: error.localizedDescription)
933 | callbackQueue.async {
934 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
935 | }
936 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:947:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
945 | message: error.localizedDescription)
946 | callbackQueue.async {
947 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
948 | }
949 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:967:17: warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
965 | if limit == 0 {
966 | callbackQueue.async {
967 | completion(.success(([], 0)))
| |- warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') 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'
968 | }
969 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:980:17: warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
978 | message: error.localizedDescription)
979 | callbackQueue.async {
980 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') 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'
981 | }
982 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1006:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1004 | if limit == 0 {
1005 | callbackQueue.async {
1006 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1007 | }
1008 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1020:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1018 | message: error.localizedDescription)
1019 | callbackQueue.async {
1020 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1021 | }
1022 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1033:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1031 | message: error.localizedDescription)
1032 | callbackQueue.async {
1033 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1034 | }
1035 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1099:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1097 | if limit == 0 {
1098 | callbackQueue.async {
1099 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1100 | }
1101 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1114:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1112 | let error = ParseError(code: .unknownError, message: "Cannot decode where to String.")
1113 | callbackQueue.async {
1114 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1115 | }
1116 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1139:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1137 | message: error.localizedDescription)
1138 | callbackQueue.async {
1139 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1140 | }
1141 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1224:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
1224 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1225 | }
1226 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1239:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1237 | let error = ParseError(code: .unknownError, message: "Cannot decode where to String.")
1238 | callbackQueue.async {
1239 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1240 | }
1241 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1264:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1262 | message: error.localizedDescription)
1263 | callbackQueue.async {
1264 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1265 | }
1266 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1277:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1275 | message: error.localizedDescription)
1276 | callbackQueue.async {
1277 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1278 | }
1279 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1323:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1321 | if limit == 0 {
1322 | callbackQueue.async {
1323 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1324 | }
1325 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1339:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1337 | message: error.localizedDescription)
1338 | callbackQueue.async {
1339 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1340 | }
1341 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1406:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1404 | if limit == 0 {
1405 | callbackQueue.async {
1406 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1407 | }
1408 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1423:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1421 | message: error.localizedDescription)
1422 | callbackQueue.async {
1423 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1424 | }
1425 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1437:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1435 | message: error.localizedDescription)
1436 | callbackQueue.async {
1437 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1438 | }
1439 | }
/host/spi-builder-workspace/Sources/ParseSwift/Parse.swift:11:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | internal struct Parse {
11 | static var configuration: ParseConfiguration!
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | static var sessionDelegate: ParseURLSessionDelegate!
13 | }
[183/185] Compiling ParseSwift QueryConstraint.swift
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:27:49: warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
25 | try await withCheckedThrowingContinuation { continuation in
26 | self.fetch(options: options,
27 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
28 | }
29 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:45:50: warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
43 | try await withCheckedThrowingContinuation { continuation in
44 | self.create(options: options,
45 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
46 | }
47 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:63:50: warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
61 | try await withCheckedThrowingContinuation { continuation in
62 | self.update(options: options,
63 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
64 | }
65 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:82:50: warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
80 | let result = try await withCheckedThrowingContinuation { continuation in
81 | self.purge(options: options,
82 | completion: continuation.resume)
| |- warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
83 | }
84 | if case let .failure(error) = result {
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:105:50: warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
103 | let result = try await withCheckedThrowingContinuation { continuation in
104 | self.delete(options: options,
105 | completion: continuation.resume)
| |- warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
106 | }
107 | if case let .failure(error) = result {
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:393:21: warning: capture of 'completion' with non-sendable type '(Result<Void, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
391 | case .failure(let error):
392 | callbackQueue.async {
393 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<Void, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
394 | }
395 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:431:21: warning: capture of 'completion' with non-sendable type '(Result<Void, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
429 | case .failure(let error):
430 | callbackQueue.async {
431 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<Void, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
432 | }
433 | }
/host/spi-builder-workspace/Sources/ParseSwift/Storage/ParseStorage.swift:10:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | // MARK: ParseStorage
9 | struct ParseStorage {
10 | public static var shared = ParseStorage()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | private var backingStore: ParsePrimitiveStorable!
/host/spi-builder-workspace/Sources/ParseSwift/Types/Pointer+async.swift:29:49: warning: converting a value of type '(__shared sending Result<T, ParseError>) -> ()' to type '(Result<T, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
27 | self.fetch(includeKeys: includeKeys,
28 | options: options,
29 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<T, ParseError>) -> ()' to type '(Result<T, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
30 | }
31 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:25:48: warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
23 | try await withCheckedThrowingContinuation { continuation in
24 | self.find(options: options,
25 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
26 | }
27 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:48:55: warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
46 | self.findExplain(usingMongoDB: usingMongoDB,
47 | options: options,
48 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
49 | }
50 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:66:51: warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
64 | self.findAll(batchLimit: batchLimit,
65 | options: options,
66 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
67 | }
68 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:79:49: warning: converting a value of type '(__shared sending Result<T, ParseError>) -> ()' to type '(Result<T, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
77 | try await withCheckedThrowingContinuation { continuation in
78 | self.first(options: options,
79 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<T, ParseError>) -> ()' to type '(Result<T, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
80 | }
81 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:102:56: warning: converting a value of type '(__shared sending Result<U, ParseError>) -> ()' to type '(Result<U, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
100 | self.firstExplain(usingMongoDB: usingMongoDB,
101 | options: options,
102 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<U, ParseError>) -> ()' to type '(Result<U, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
103 | }
104 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:115:49: warning: converting a value of type '(__shared sending Result<Int, ParseError>) -> ()' to type '(Result<Int, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
113 | try await withCheckedThrowingContinuation { continuation in
114 | self.count(options: options,
115 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<Int, ParseError>) -> ()' to type '(Result<Int, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
116 | }
117 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:138:56: warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
136 | self.countExplain(usingMongoDB: usingMongoDB,
137 | options: options,
138 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
139 | }
140 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:152:53: warning: converting a value of type '(__shared sending Result<([T], Int), ParseError>) -> ()' to type '(Result<([T], Int), ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
150 | try await withCheckedThrowingContinuation { continuation in
151 | self.withCount(options: options,
152 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<([T], Int), ParseError>) -> ()' to type '(Result<([T], Int), ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
153 | }
154 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:175:60: warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
173 | self.withCountExplain(usingMongoDB: usingMongoDB,
174 | options: options,
175 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
176 | }
177 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:194:53: warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
192 | self.aggregate(pipeline,
193 | options: options,
194 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
195 | }
196 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:223:60: warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
221 | usingMongoDB: usingMongoDB,
222 | options: options,
223 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
224 | }
225 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:242:52: warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
240 | self.distinct(key,
241 | options: options,
242 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
243 | }
244 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:271:59: warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
269 | usingMongoDB: usingMongoDB,
270 | options: options,
271 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
272 | }
273 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:48:26: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
13 | The `Query` class defines a query that is used to query for `ParseObject`s.
14 | */
15 | public struct Query<T>: ParseTypeable where T: ParseObject {
| `- note: 'T' previously declared here
16 | // interpolate as GET
17 | private let method: String = "GET"
:
46 | }
47 |
48 | struct AggregateBody<T>: Codable where T: ParseObject {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
49 | let pipeline: [[String: AnyCodable]]?
50 | let hint: AnyCodable?
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:79:25: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
13 | The `Query` class defines a query that is used to query for `ParseObject`s.
14 | */
15 | public struct Query<T>: ParseTypeable where T: ParseObject {
| `- note: 'T' previously declared here
16 | // interpolate as GET
17 | private let method: String = "GET"
:
77 | }
78 |
79 | struct DistinctBody<T>: Codable where T: ParseObject {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
80 | let hint: AnyCodable?
81 | let explain: Bool?
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:544:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
542 | if limit == 0 {
543 | callbackQueue.async {
544 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
545 | }
546 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:557:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
555 | message: error.localizedDescription)
556 | callbackQueue.async {
557 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
558 | }
559 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:583:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
581 | if limit == 0 {
582 | callbackQueue.async {
583 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
584 | }
585 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:597:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
595 | message: error.localizedDescription)
596 | callbackQueue.async {
597 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
598 | }
599 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:610:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
608 | message: error.localizedDescription)
609 | callbackQueue.async {
610 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
611 | }
612 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:635:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
633 | if self.limit == 0 {
634 | callbackQueue.async {
635 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
636 | }
637 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:676:25: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
674 | let parseError = error as? ParseError ?? defaultError
675 | callbackQueue.async {
676 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
677 | }
678 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:683:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
681 |
682 | callbackQueue.async {
683 | completion(.success(results))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
684 | }
685 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:683:37: warning: capture of 'results' with non-sendable type '[Query<T>.ResultType]' (aka 'Array<T>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | The `Query` class defines a query that is used to query for `ParseObject`s.
14 | */
15 | public struct Query<T>: ParseTypeable where T: ParseObject {
| `- note: consider making generic parameter 'Query<T>.ResultType' (aka 'T') conform to the 'Sendable' protocol
16 | // interpolate as GET
17 | private let method: String = "GET"
:
681 |
682 | callbackQueue.async {
683 | completion(.success(results))
| `- warning: capture of 'results' with non-sendable type '[Query<T>.ResultType]' (aka 'Array<T>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
684 | }
685 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:683:37: warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
681 |
682 | callbackQueue.async {
683 | completion(.success(results))
| `- warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
684 | }
685 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:751:17: warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
749 | message: "Object not found on the server.")
750 | callbackQueue.async {
751 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') 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'
752 | }
753 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:764:17: warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
762 | message: error.localizedDescription)
763 | callbackQueue.async {
764 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') 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'
765 | }
766 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:794:17: warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
792 | message: "Object not found on the server.")
793 | callbackQueue.async {
794 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
795 | }
796 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:808:21: warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
806 | message: error.localizedDescription)
807 | callbackQueue.async {
808 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
809 | }
810 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:821:21: warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
819 | message: error.localizedDescription)
820 | callbackQueue.async {
821 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
822 | }
823 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:881:17: warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
879 | if limit == 0 {
880 | callbackQueue.async {
881 | completion(.success(0))
| |- warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
882 | }
883 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:894:17: warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
892 | message: error.localizedDescription)
893 | callbackQueue.async {
894 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
895 | }
896 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:920:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
918 | if limit == 0 {
919 | callbackQueue.async {
920 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
921 | }
922 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:934:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
932 | message: error.localizedDescription)
933 | callbackQueue.async {
934 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
935 | }
936 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:947:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
945 | message: error.localizedDescription)
946 | callbackQueue.async {
947 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
948 | }
949 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:967:17: warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
965 | if limit == 0 {
966 | callbackQueue.async {
967 | completion(.success(([], 0)))
| |- warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') 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'
968 | }
969 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:980:17: warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
978 | message: error.localizedDescription)
979 | callbackQueue.async {
980 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') 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'
981 | }
982 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1006:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1004 | if limit == 0 {
1005 | callbackQueue.async {
1006 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1007 | }
1008 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1020:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1018 | message: error.localizedDescription)
1019 | callbackQueue.async {
1020 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1021 | }
1022 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1033:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1031 | message: error.localizedDescription)
1032 | callbackQueue.async {
1033 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1034 | }
1035 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1099:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1097 | if limit == 0 {
1098 | callbackQueue.async {
1099 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1100 | }
1101 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1114:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1112 | let error = ParseError(code: .unknownError, message: "Cannot decode where to String.")
1113 | callbackQueue.async {
1114 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1115 | }
1116 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1139:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1137 | message: error.localizedDescription)
1138 | callbackQueue.async {
1139 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1140 | }
1141 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1224:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
1224 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1225 | }
1226 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1239:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1237 | let error = ParseError(code: .unknownError, message: "Cannot decode where to String.")
1238 | callbackQueue.async {
1239 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1240 | }
1241 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1264:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1262 | message: error.localizedDescription)
1263 | callbackQueue.async {
1264 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1265 | }
1266 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1277:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1275 | message: error.localizedDescription)
1276 | callbackQueue.async {
1277 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1278 | }
1279 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1323:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1321 | if limit == 0 {
1322 | callbackQueue.async {
1323 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1324 | }
1325 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1339:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1337 | message: error.localizedDescription)
1338 | callbackQueue.async {
1339 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1340 | }
1341 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1406:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1404 | if limit == 0 {
1405 | callbackQueue.async {
1406 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1407 | }
1408 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1423:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1421 | message: error.localizedDescription)
1422 | callbackQueue.async {
1423 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1424 | }
1425 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1437:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1435 | message: error.localizedDescription)
1436 | callbackQueue.async {
1437 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1438 | }
1439 | }
/host/spi-builder-workspace/Sources/ParseSwift/Parse.swift:11:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | internal struct Parse {
11 | static var configuration: ParseConfiguration!
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | static var sessionDelegate: ParseURLSessionDelegate!
13 | }
[184/185] Compiling ParseSwift QueryViewModel.swift
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:27:49: warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
25 | try await withCheckedThrowingContinuation { continuation in
26 | self.fetch(options: options,
27 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
28 | }
29 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:45:50: warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
43 | try await withCheckedThrowingContinuation { continuation in
44 | self.create(options: options,
45 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
46 | }
47 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:63:50: warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
61 | try await withCheckedThrowingContinuation { continuation in
62 | self.update(options: options,
63 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
64 | }
65 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:82:50: warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
80 | let result = try await withCheckedThrowingContinuation { continuation in
81 | self.purge(options: options,
82 | completion: continuation.resume)
| |- warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
83 | }
84 | if case let .failure(error) = result {
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:105:50: warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
103 | let result = try await withCheckedThrowingContinuation { continuation in
104 | self.delete(options: options,
105 | completion: continuation.resume)
| |- warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
106 | }
107 | if case let .failure(error) = result {
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:393:21: warning: capture of 'completion' with non-sendable type '(Result<Void, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
391 | case .failure(let error):
392 | callbackQueue.async {
393 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<Void, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
394 | }
395 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:431:21: warning: capture of 'completion' with non-sendable type '(Result<Void, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
429 | case .failure(let error):
430 | callbackQueue.async {
431 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<Void, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
432 | }
433 | }
/host/spi-builder-workspace/Sources/ParseSwift/Storage/ParseStorage.swift:10:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | // MARK: ParseStorage
9 | struct ParseStorage {
10 | public static var shared = ParseStorage()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | private var backingStore: ParsePrimitiveStorable!
/host/spi-builder-workspace/Sources/ParseSwift/Types/Pointer+async.swift:29:49: warning: converting a value of type '(__shared sending Result<T, ParseError>) -> ()' to type '(Result<T, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
27 | self.fetch(includeKeys: includeKeys,
28 | options: options,
29 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<T, ParseError>) -> ()' to type '(Result<T, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
30 | }
31 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:25:48: warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
23 | try await withCheckedThrowingContinuation { continuation in
24 | self.find(options: options,
25 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
26 | }
27 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:48:55: warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
46 | self.findExplain(usingMongoDB: usingMongoDB,
47 | options: options,
48 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
49 | }
50 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:66:51: warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
64 | self.findAll(batchLimit: batchLimit,
65 | options: options,
66 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
67 | }
68 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:79:49: warning: converting a value of type '(__shared sending Result<T, ParseError>) -> ()' to type '(Result<T, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
77 | try await withCheckedThrowingContinuation { continuation in
78 | self.first(options: options,
79 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<T, ParseError>) -> ()' to type '(Result<T, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
80 | }
81 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:102:56: warning: converting a value of type '(__shared sending Result<U, ParseError>) -> ()' to type '(Result<U, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
100 | self.firstExplain(usingMongoDB: usingMongoDB,
101 | options: options,
102 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<U, ParseError>) -> ()' to type '(Result<U, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
103 | }
104 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:115:49: warning: converting a value of type '(__shared sending Result<Int, ParseError>) -> ()' to type '(Result<Int, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
113 | try await withCheckedThrowingContinuation { continuation in
114 | self.count(options: options,
115 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<Int, ParseError>) -> ()' to type '(Result<Int, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
116 | }
117 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:138:56: warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
136 | self.countExplain(usingMongoDB: usingMongoDB,
137 | options: options,
138 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
139 | }
140 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:152:53: warning: converting a value of type '(__shared sending Result<([T], Int), ParseError>) -> ()' to type '(Result<([T], Int), ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
150 | try await withCheckedThrowingContinuation { continuation in
151 | self.withCount(options: options,
152 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<([T], Int), ParseError>) -> ()' to type '(Result<([T], Int), ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
153 | }
154 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:175:60: warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
173 | self.withCountExplain(usingMongoDB: usingMongoDB,
174 | options: options,
175 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
176 | }
177 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:194:53: warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
192 | self.aggregate(pipeline,
193 | options: options,
194 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
195 | }
196 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:223:60: warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
221 | usingMongoDB: usingMongoDB,
222 | options: options,
223 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
224 | }
225 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:242:52: warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
240 | self.distinct(key,
241 | options: options,
242 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
243 | }
244 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:271:59: warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
269 | usingMongoDB: usingMongoDB,
270 | options: options,
271 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
272 | }
273 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:48:26: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
13 | The `Query` class defines a query that is used to query for `ParseObject`s.
14 | */
15 | public struct Query<T>: ParseTypeable where T: ParseObject {
| `- note: 'T' previously declared here
16 | // interpolate as GET
17 | private let method: String = "GET"
:
46 | }
47 |
48 | struct AggregateBody<T>: Codable where T: ParseObject {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
49 | let pipeline: [[String: AnyCodable]]?
50 | let hint: AnyCodable?
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:79:25: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
13 | The `Query` class defines a query that is used to query for `ParseObject`s.
14 | */
15 | public struct Query<T>: ParseTypeable where T: ParseObject {
| `- note: 'T' previously declared here
16 | // interpolate as GET
17 | private let method: String = "GET"
:
77 | }
78 |
79 | struct DistinctBody<T>: Codable where T: ParseObject {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
80 | let hint: AnyCodable?
81 | let explain: Bool?
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:544:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
542 | if limit == 0 {
543 | callbackQueue.async {
544 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
545 | }
546 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:557:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
555 | message: error.localizedDescription)
556 | callbackQueue.async {
557 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
558 | }
559 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:583:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
581 | if limit == 0 {
582 | callbackQueue.async {
583 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
584 | }
585 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:597:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
595 | message: error.localizedDescription)
596 | callbackQueue.async {
597 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
598 | }
599 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:610:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
608 | message: error.localizedDescription)
609 | callbackQueue.async {
610 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
611 | }
612 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:635:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
633 | if self.limit == 0 {
634 | callbackQueue.async {
635 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
636 | }
637 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:676:25: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
674 | let parseError = error as? ParseError ?? defaultError
675 | callbackQueue.async {
676 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
677 | }
678 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:683:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
681 |
682 | callbackQueue.async {
683 | completion(.success(results))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
684 | }
685 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:683:37: warning: capture of 'results' with non-sendable type '[Query<T>.ResultType]' (aka 'Array<T>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | The `Query` class defines a query that is used to query for `ParseObject`s.
14 | */
15 | public struct Query<T>: ParseTypeable where T: ParseObject {
| `- note: consider making generic parameter 'Query<T>.ResultType' (aka 'T') conform to the 'Sendable' protocol
16 | // interpolate as GET
17 | private let method: String = "GET"
:
681 |
682 | callbackQueue.async {
683 | completion(.success(results))
| `- warning: capture of 'results' with non-sendable type '[Query<T>.ResultType]' (aka 'Array<T>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
684 | }
685 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:683:37: warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
681 |
682 | callbackQueue.async {
683 | completion(.success(results))
| `- warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
684 | }
685 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:751:17: warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
749 | message: "Object not found on the server.")
750 | callbackQueue.async {
751 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') 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'
752 | }
753 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:764:17: warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
762 | message: error.localizedDescription)
763 | callbackQueue.async {
764 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') 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'
765 | }
766 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:794:17: warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
792 | message: "Object not found on the server.")
793 | callbackQueue.async {
794 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
795 | }
796 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:808:21: warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
806 | message: error.localizedDescription)
807 | callbackQueue.async {
808 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
809 | }
810 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:821:21: warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
819 | message: error.localizedDescription)
820 | callbackQueue.async {
821 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
822 | }
823 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:881:17: warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
879 | if limit == 0 {
880 | callbackQueue.async {
881 | completion(.success(0))
| |- warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
882 | }
883 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:894:17: warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
892 | message: error.localizedDescription)
893 | callbackQueue.async {
894 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
895 | }
896 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:920:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
918 | if limit == 0 {
919 | callbackQueue.async {
920 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
921 | }
922 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:934:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
932 | message: error.localizedDescription)
933 | callbackQueue.async {
934 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
935 | }
936 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:947:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
945 | message: error.localizedDescription)
946 | callbackQueue.async {
947 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
948 | }
949 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:967:17: warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
965 | if limit == 0 {
966 | callbackQueue.async {
967 | completion(.success(([], 0)))
| |- warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') 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'
968 | }
969 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:980:17: warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
978 | message: error.localizedDescription)
979 | callbackQueue.async {
980 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') 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'
981 | }
982 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1006:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1004 | if limit == 0 {
1005 | callbackQueue.async {
1006 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1007 | }
1008 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1020:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1018 | message: error.localizedDescription)
1019 | callbackQueue.async {
1020 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1021 | }
1022 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1033:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1031 | message: error.localizedDescription)
1032 | callbackQueue.async {
1033 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1034 | }
1035 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1099:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1097 | if limit == 0 {
1098 | callbackQueue.async {
1099 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1100 | }
1101 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1114:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1112 | let error = ParseError(code: .unknownError, message: "Cannot decode where to String.")
1113 | callbackQueue.async {
1114 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1115 | }
1116 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1139:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1137 | message: error.localizedDescription)
1138 | callbackQueue.async {
1139 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1140 | }
1141 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1224:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
1224 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1225 | }
1226 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1239:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1237 | let error = ParseError(code: .unknownError, message: "Cannot decode where to String.")
1238 | callbackQueue.async {
1239 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1240 | }
1241 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1264:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1262 | message: error.localizedDescription)
1263 | callbackQueue.async {
1264 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1265 | }
1266 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1277:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1275 | message: error.localizedDescription)
1276 | callbackQueue.async {
1277 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1278 | }
1279 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1323:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1321 | if limit == 0 {
1322 | callbackQueue.async {
1323 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1324 | }
1325 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1339:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1337 | message: error.localizedDescription)
1338 | callbackQueue.async {
1339 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1340 | }
1341 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1406:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1404 | if limit == 0 {
1405 | callbackQueue.async {
1406 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1407 | }
1408 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1423:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1421 | message: error.localizedDescription)
1422 | callbackQueue.async {
1423 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1424 | }
1425 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1437:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1435 | message: error.localizedDescription)
1436 | callbackQueue.async {
1437 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1438 | }
1439 | }
/host/spi-builder-workspace/Sources/ParseSwift/Parse.swift:11:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | internal struct Parse {
11 | static var configuration: ParseConfiguration!
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | static var sessionDelegate: ParseURLSessionDelegate!
13 | }
[185/185] Compiling ParseSwift QueryWhere.swift
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:27:49: warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
25 | try await withCheckedThrowingContinuation { continuation in
26 | self.fetch(options: options,
27 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
28 | }
29 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:45:50: warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
43 | try await withCheckedThrowingContinuation { continuation in
44 | self.create(options: options,
45 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
46 | }
47 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:63:50: warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
61 | try await withCheckedThrowingContinuation { continuation in
62 | self.update(options: options,
63 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
64 | }
65 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:82:50: warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
80 | let result = try await withCheckedThrowingContinuation { continuation in
81 | self.purge(options: options,
82 | completion: continuation.resume)
| |- warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
83 | }
84 | if case let .failure(error) = result {
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:105:50: warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
103 | let result = try await withCheckedThrowingContinuation { continuation in
104 | self.delete(options: options,
105 | completion: continuation.resume)
| |- warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
106 | }
107 | if case let .failure(error) = result {
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:393:21: warning: capture of 'completion' with non-sendable type '(Result<Void, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
391 | case .failure(let error):
392 | callbackQueue.async {
393 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<Void, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
394 | }
395 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:431:21: warning: capture of 'completion' with non-sendable type '(Result<Void, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
429 | case .failure(let error):
430 | callbackQueue.async {
431 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<Void, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
432 | }
433 | }
/host/spi-builder-workspace/Sources/ParseSwift/Storage/ParseStorage.swift:10:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | // MARK: ParseStorage
9 | struct ParseStorage {
10 | public static var shared = ParseStorage()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | private var backingStore: ParsePrimitiveStorable!
/host/spi-builder-workspace/Sources/ParseSwift/Types/Pointer+async.swift:29:49: warning: converting a value of type '(__shared sending Result<T, ParseError>) -> ()' to type '(Result<T, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
27 | self.fetch(includeKeys: includeKeys,
28 | options: options,
29 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<T, ParseError>) -> ()' to type '(Result<T, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
30 | }
31 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:25:48: warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
23 | try await withCheckedThrowingContinuation { continuation in
24 | self.find(options: options,
25 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
26 | }
27 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:48:55: warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
46 | self.findExplain(usingMongoDB: usingMongoDB,
47 | options: options,
48 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
49 | }
50 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:66:51: warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
64 | self.findAll(batchLimit: batchLimit,
65 | options: options,
66 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
67 | }
68 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:79:49: warning: converting a value of type '(__shared sending Result<T, ParseError>) -> ()' to type '(Result<T, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
77 | try await withCheckedThrowingContinuation { continuation in
78 | self.first(options: options,
79 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<T, ParseError>) -> ()' to type '(Result<T, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
80 | }
81 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:102:56: warning: converting a value of type '(__shared sending Result<U, ParseError>) -> ()' to type '(Result<U, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
100 | self.firstExplain(usingMongoDB: usingMongoDB,
101 | options: options,
102 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<U, ParseError>) -> ()' to type '(Result<U, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
103 | }
104 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:115:49: warning: converting a value of type '(__shared sending Result<Int, ParseError>) -> ()' to type '(Result<Int, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
113 | try await withCheckedThrowingContinuation { continuation in
114 | self.count(options: options,
115 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<Int, ParseError>) -> ()' to type '(Result<Int, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
116 | }
117 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:138:56: warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
136 | self.countExplain(usingMongoDB: usingMongoDB,
137 | options: options,
138 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
139 | }
140 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:152:53: warning: converting a value of type '(__shared sending Result<([T], Int), ParseError>) -> ()' to type '(Result<([T], Int), ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
150 | try await withCheckedThrowingContinuation { continuation in
151 | self.withCount(options: options,
152 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<([T], Int), ParseError>) -> ()' to type '(Result<([T], Int), ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
153 | }
154 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:175:60: warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
173 | self.withCountExplain(usingMongoDB: usingMongoDB,
174 | options: options,
175 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
176 | }
177 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:194:53: warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
192 | self.aggregate(pipeline,
193 | options: options,
194 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
195 | }
196 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:223:60: warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
221 | usingMongoDB: usingMongoDB,
222 | options: options,
223 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
224 | }
225 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:242:52: warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
240 | self.distinct(key,
241 | options: options,
242 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[T], ParseError>) -> ()' to type '(Result<[T], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
243 | }
244 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:271:59: warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
269 | usingMongoDB: usingMongoDB,
270 | options: options,
271 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<[U], ParseError>) -> ()' to type '(Result<[U], ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
272 | }
273 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:48:26: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
13 | The `Query` class defines a query that is used to query for `ParseObject`s.
14 | */
15 | public struct Query<T>: ParseTypeable where T: ParseObject {
| `- note: 'T' previously declared here
16 | // interpolate as GET
17 | private let method: String = "GET"
:
46 | }
47 |
48 | struct AggregateBody<T>: Codable where T: ParseObject {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
49 | let pipeline: [[String: AnyCodable]]?
50 | let hint: AnyCodable?
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:79:25: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
13 | The `Query` class defines a query that is used to query for `ParseObject`s.
14 | */
15 | public struct Query<T>: ParseTypeable where T: ParseObject {
| `- note: 'T' previously declared here
16 | // interpolate as GET
17 | private let method: String = "GET"
:
77 | }
78 |
79 | struct DistinctBody<T>: Codable where T: ParseObject {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
80 | let hint: AnyCodable?
81 | let explain: Bool?
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:544:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
542 | if limit == 0 {
543 | callbackQueue.async {
544 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
545 | }
546 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:557:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
555 | message: error.localizedDescription)
556 | callbackQueue.async {
557 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
558 | }
559 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:583:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
581 | if limit == 0 {
582 | callbackQueue.async {
583 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
584 | }
585 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:597:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
595 | message: error.localizedDescription)
596 | callbackQueue.async {
597 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
598 | }
599 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:610:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
608 | message: error.localizedDescription)
609 | callbackQueue.async {
610 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
611 | }
612 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:635:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
633 | if self.limit == 0 {
634 | callbackQueue.async {
635 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
636 | }
637 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:676:25: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
674 | let parseError = error as? ParseError ?? defaultError
675 | callbackQueue.async {
676 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
677 | }
678 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:683:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
681 |
682 | callbackQueue.async {
683 | completion(.success(results))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
684 | }
685 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:683:37: warning: capture of 'results' with non-sendable type '[Query<T>.ResultType]' (aka 'Array<T>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | The `Query` class defines a query that is used to query for `ParseObject`s.
14 | */
15 | public struct Query<T>: ParseTypeable where T: ParseObject {
| `- note: consider making generic parameter 'Query<T>.ResultType' (aka 'T') conform to the 'Sendable' protocol
16 | // interpolate as GET
17 | private let method: String = "GET"
:
681 |
682 | callbackQueue.async {
683 | completion(.success(results))
| `- warning: capture of 'results' with non-sendable type '[Query<T>.ResultType]' (aka 'Array<T>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
684 | }
685 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:683:37: warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
681 |
682 | callbackQueue.async {
683 | completion(.success(results))
| `- warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
684 | }
685 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:751:17: warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
749 | message: "Object not found on the server.")
750 | callbackQueue.async {
751 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') 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'
752 | }
753 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:764:17: warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
762 | message: error.localizedDescription)
763 | callbackQueue.async {
764 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') 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'
765 | }
766 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:794:17: warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
792 | message: "Object not found on the server.")
793 | callbackQueue.async {
794 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
795 | }
796 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:808:21: warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
806 | message: error.localizedDescription)
807 | callbackQueue.async {
808 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
809 | }
810 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:821:21: warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
819 | message: error.localizedDescription)
820 | callbackQueue.async {
821 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
822 | }
823 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:881:17: warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
879 | if limit == 0 {
880 | callbackQueue.async {
881 | completion(.success(0))
| |- warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
882 | }
883 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:894:17: warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
892 | message: error.localizedDescription)
893 | callbackQueue.async {
894 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
895 | }
896 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:920:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
918 | if limit == 0 {
919 | callbackQueue.async {
920 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
921 | }
922 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:934:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
932 | message: error.localizedDescription)
933 | callbackQueue.async {
934 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
935 | }
936 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:947:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
945 | message: error.localizedDescription)
946 | callbackQueue.async {
947 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
948 | }
949 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:967:17: warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
965 | if limit == 0 {
966 | callbackQueue.async {
967 | completion(.success(([], 0)))
| |- warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') 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'
968 | }
969 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:980:17: warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
978 | message: error.localizedDescription)
979 | callbackQueue.async {
980 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') 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'
981 | }
982 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1006:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1004 | if limit == 0 {
1005 | callbackQueue.async {
1006 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1007 | }
1008 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1020:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1018 | message: error.localizedDescription)
1019 | callbackQueue.async {
1020 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1021 | }
1022 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1033:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1031 | message: error.localizedDescription)
1032 | callbackQueue.async {
1033 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1034 | }
1035 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1099:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1097 | if limit == 0 {
1098 | callbackQueue.async {
1099 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1100 | }
1101 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1114:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1112 | let error = ParseError(code: .unknownError, message: "Cannot decode where to String.")
1113 | callbackQueue.async {
1114 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1115 | }
1116 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1139:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1137 | message: error.localizedDescription)
1138 | callbackQueue.async {
1139 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1140 | }
1141 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1224:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
1224 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1225 | }
1226 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1239:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1237 | let error = ParseError(code: .unknownError, message: "Cannot decode where to String.")
1238 | callbackQueue.async {
1239 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1240 | }
1241 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1264:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1262 | message: error.localizedDescription)
1263 | callbackQueue.async {
1264 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1265 | }
1266 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1277:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1275 | message: error.localizedDescription)
1276 | callbackQueue.async {
1277 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1278 | }
1279 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1323:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1321 | if limit == 0 {
1322 | callbackQueue.async {
1323 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1324 | }
1325 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1339:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1337 | message: error.localizedDescription)
1338 | callbackQueue.async {
1339 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') 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'
1340 | }
1341 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1406:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1404 | if limit == 0 {
1405 | callbackQueue.async {
1406 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1407 | }
1408 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1423:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1421 | message: error.localizedDescription)
1422 | callbackQueue.async {
1423 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1424 | }
1425 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1437:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1435 | message: error.localizedDescription)
1436 | callbackQueue.async {
1437 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1438 | }
1439 | }
/host/spi-builder-workspace/Sources/ParseSwift/Parse.swift:11:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | internal struct Parse {
11 | static var configuration: ParseConfiguration!
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | static var sessionDelegate: ParseURLSessionDelegate!
13 | }
BUILD FAILURE 6.0 linux