Build Information
Failed to build ParseSwift, reference 4.14.2 (dc7666
), with Swift 6.2 (beta) for Linux on 19 Jun 2025 18:57:31 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
1095 | callbackQueue: DispatchQueue = .main,
1096 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1097 | if limit == 0 {
1098 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1224:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1225 | }
1226 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1221:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1219 | options: API.Options = [],
1220 | callbackQueue: DispatchQueue = .main,
1221 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1239:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1240 | }
1241 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1221:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1219 | options: API.Options = [],
1220 | callbackQueue: DispatchQueue = .main,
1221 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1264:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1265 | }
1266 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1221:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1219 | options: API.Options = [],
1220 | callbackQueue: DispatchQueue = .main,
1221 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1277:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1278 | }
1279 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1221:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1219 | options: API.Options = [],
1220 | callbackQueue: DispatchQueue = .main,
1221 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1323:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1324 | }
1325 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1320:26: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1318 | options: API.Options = [],
1319 | callbackQueue: DispatchQueue = .main,
1320 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1321 | if limit == 0 {
1322 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1339:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1340 | }
1341 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1320:26: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1318 | options: API.Options = [],
1319 | callbackQueue: DispatchQueue = .main,
1320 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1321 | if limit == 0 {
1322 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1406:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1407 | }
1408 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1403:47: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1401 | options: API.Options = [],
1402 | callbackQueue: DispatchQueue = .main,
1403 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1404 | if limit == 0 {
1405 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1423:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1424 | }
1425 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1403:47: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1401 | options: API.Options = [],
1402 | callbackQueue: DispatchQueue = .main,
1403 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1404 | if limit == 0 {
1405 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1437:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1438 | }
1439 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1403:47: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1401 | options: API.Options = [],
1402 | callbackQueue: DispatchQueue = .main,
1403 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1404 | if limit == 0 {
1405 | callbackQueue.async {
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[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/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 non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
545 | }
546 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:541:22: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
539 | public func find(options: API.Options = [],
540 | callbackQueue: DispatchQueue = .main,
541 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
542 | if limit == 0 {
543 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:557:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
558 | }
559 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:541:22: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
539 | public func find(options: API.Options = [],
540 | callbackQueue: DispatchQueue = .main,
541 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
542 | if limit == 0 {
543 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:583:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
584 | }
585 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:580:43: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
578 | options: API.Options = [],
579 | callbackQueue: DispatchQueue = .main,
580 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
581 | if limit == 0 {
582 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:597:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
598 | }
599 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:580:43: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
578 | options: API.Options = [],
579 | callbackQueue: DispatchQueue = .main,
580 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
581 | if limit == 0 {
582 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:610:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
611 | }
612 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:580:43: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
578 | options: API.Options = [],
579 | callbackQueue: DispatchQueue = .main,
580 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
581 | if limit == 0 {
582 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:635:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
636 | }
637 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:632:25: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
630 | options: API.Options = [],
631 | callbackQueue: DispatchQueue = .main,
632 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
633 | if self.limit == 0 {
634 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:676:25: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
677 | }
678 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:632:25: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
630 | options: API.Options = [],
631 | callbackQueue: DispatchQueue = .main,
632 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
633 | if self.limit == 0 {
634 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:683:17: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
681 |
682 | callbackQueue.async {
683 | completion(.success(results))
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
684 | }
685 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:632:25: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
630 | options: API.Options = [],
631 | callbackQueue: DispatchQueue = .main,
632 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
633 | if self.limit == 0 {
634 | callbackQueue.async {
/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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
684 | }
685 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:751:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
752 | }
753 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:746:23: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
744 | public func first(options: API.Options = [],
745 | callbackQueue: DispatchQueue = .main,
746 | completion: @escaping (Result<ResultType, ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
747 | if limit == 0 {
748 | let error = ParseError(code: .objectNotFound,
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:764:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
765 | }
766 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:746:23: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
744 | public func first(options: API.Options = [],
745 | callbackQueue: DispatchQueue = .main,
746 | completion: @escaping (Result<ResultType, ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
747 | if limit == 0 {
748 | let error = ParseError(code: .objectNotFound,
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:794:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
795 | }
796 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:789:44: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
787 | options: API.Options = [],
788 | callbackQueue: DispatchQueue = .main,
789 | completion: @escaping (Result<U, ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
790 | if limit == 0 {
791 | let error = ParseError(code: .objectNotFound,
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:808:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
809 | }
810 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:789:44: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
787 | options: API.Options = [],
788 | callbackQueue: DispatchQueue = .main,
789 | completion: @escaping (Result<U, ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
790 | if limit == 0 {
791 | let error = ParseError(code: .objectNotFound,
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:821:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
822 | }
823 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:789:44: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
787 | options: API.Options = [],
788 | callbackQueue: DispatchQueue = .main,
789 | completion: @escaping (Result<U, ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
790 | if limit == 0 {
791 | let error = ParseError(code: .objectNotFound,
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:920:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
921 | }
922 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:917:44: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
915 | options: API.Options = [],
916 | callbackQueue: DispatchQueue = .main,
917 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
918 | if limit == 0 {
919 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:934:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
935 | }
936 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:917:44: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
915 | options: API.Options = [],
916 | callbackQueue: DispatchQueue = .main,
917 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
918 | if limit == 0 {
919 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:947:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
948 | }
949 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:917:44: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
915 | options: API.Options = [],
916 | callbackQueue: DispatchQueue = .main,
917 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
918 | if limit == 0 {
919 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:967:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
968 | }
969 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:964:27: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
962 | public func withCount(options: API.Options = [],
963 | callbackQueue: DispatchQueue = .main,
964 | completion: @escaping (Result<([ResultType], Int), ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
965 | if limit == 0 {
966 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:980:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
981 | }
982 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:964:27: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
962 | public func withCount(options: API.Options = [],
963 | callbackQueue: DispatchQueue = .main,
964 | completion: @escaping (Result<([ResultType], Int), ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
965 | if limit == 0 {
966 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1006:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1007 | }
1008 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1003:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1001 | options: API.Options = [],
1002 | callbackQueue: DispatchQueue = .main,
1003 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1004 | if limit == 0 {
1005 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1020:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1021 | }
1022 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1003:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1001 | options: API.Options = [],
1002 | callbackQueue: DispatchQueue = .main,
1003 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1004 | if limit == 0 {
1005 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1033:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1034 | }
1035 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1003:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1001 | options: API.Options = [],
1002 | callbackQueue: DispatchQueue = .main,
1003 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1004 | if limit == 0 {
1005 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1099:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1100 | }
1101 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1096:27: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1094 | options: API.Options = [],
1095 | callbackQueue: DispatchQueue = .main,
1096 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1097 | if limit == 0 {
1098 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1114:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1115 | }
1116 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1096:27: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1094 | options: API.Options = [],
1095 | callbackQueue: DispatchQueue = .main,
1096 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1097 | if limit == 0 {
1098 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1139:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1140 | }
1141 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1096:27: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1094 | options: API.Options = [],
1095 | callbackQueue: DispatchQueue = .main,
1096 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1097 | if limit == 0 {
1098 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1224:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1225 | }
1226 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1221:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1219 | options: API.Options = [],
1220 | callbackQueue: DispatchQueue = .main,
1221 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1239:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1240 | }
1241 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1221:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1219 | options: API.Options = [],
1220 | callbackQueue: DispatchQueue = .main,
1221 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1264:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1265 | }
1266 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1221:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1219 | options: API.Options = [],
1220 | callbackQueue: DispatchQueue = .main,
1221 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1277:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1278 | }
1279 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1221:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1219 | options: API.Options = [],
1220 | callbackQueue: DispatchQueue = .main,
1221 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1323:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1324 | }
1325 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1320:26: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1318 | options: API.Options = [],
1319 | callbackQueue: DispatchQueue = .main,
1320 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1321 | if limit == 0 {
1322 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1339:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1340 | }
1341 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1320:26: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1318 | options: API.Options = [],
1319 | callbackQueue: DispatchQueue = .main,
1320 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1321 | if limit == 0 {
1322 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1406:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1407 | }
1408 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1403:47: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1401 | options: API.Options = [],
1402 | callbackQueue: DispatchQueue = .main,
1403 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1404 | if limit == 0 {
1405 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1423:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1424 | }
1425 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1403:47: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1401 | options: API.Options = [],
1402 | callbackQueue: DispatchQueue = .main,
1403 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1404 | if limit == 0 {
1405 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1437:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1438 | }
1439 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1403:47: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1401 | options: API.Options = [],
1402 | callbackQueue: DispatchQueue = .main,
1403 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1404 | if limit == 0 {
1405 | callbackQueue.async {
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[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/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 non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
545 | }
546 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:541:22: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
539 | public func find(options: API.Options = [],
540 | callbackQueue: DispatchQueue = .main,
541 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
542 | if limit == 0 {
543 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:557:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
558 | }
559 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:541:22: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
539 | public func find(options: API.Options = [],
540 | callbackQueue: DispatchQueue = .main,
541 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
542 | if limit == 0 {
543 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:583:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
584 | }
585 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:580:43: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
578 | options: API.Options = [],
579 | callbackQueue: DispatchQueue = .main,
580 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
581 | if limit == 0 {
582 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:597:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
598 | }
599 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:580:43: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
578 | options: API.Options = [],
579 | callbackQueue: DispatchQueue = .main,
580 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
581 | if limit == 0 {
582 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:610:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
611 | }
612 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:580:43: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
578 | options: API.Options = [],
579 | callbackQueue: DispatchQueue = .main,
580 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
581 | if limit == 0 {
582 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:635:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
636 | }
637 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:632:25: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
630 | options: API.Options = [],
631 | callbackQueue: DispatchQueue = .main,
632 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
633 | if self.limit == 0 {
634 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:676:25: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
677 | }
678 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:632:25: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
630 | options: API.Options = [],
631 | callbackQueue: DispatchQueue = .main,
632 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
633 | if self.limit == 0 {
634 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:683:17: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
681 |
682 | callbackQueue.async {
683 | completion(.success(results))
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
684 | }
685 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:632:25: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
630 | options: API.Options = [],
631 | callbackQueue: DispatchQueue = .main,
632 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
633 | if self.limit == 0 {
634 | callbackQueue.async {
/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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
684 | }
685 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:751:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
752 | }
753 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:746:23: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
744 | public func first(options: API.Options = [],
745 | callbackQueue: DispatchQueue = .main,
746 | completion: @escaping (Result<ResultType, ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
747 | if limit == 0 {
748 | let error = ParseError(code: .objectNotFound,
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:764:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
765 | }
766 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:746:23: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
744 | public func first(options: API.Options = [],
745 | callbackQueue: DispatchQueue = .main,
746 | completion: @escaping (Result<ResultType, ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
747 | if limit == 0 {
748 | let error = ParseError(code: .objectNotFound,
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:794:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
795 | }
796 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:789:44: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
787 | options: API.Options = [],
788 | callbackQueue: DispatchQueue = .main,
789 | completion: @escaping (Result<U, ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
790 | if limit == 0 {
791 | let error = ParseError(code: .objectNotFound,
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:808:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
809 | }
810 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:789:44: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
787 | options: API.Options = [],
788 | callbackQueue: DispatchQueue = .main,
789 | completion: @escaping (Result<U, ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
790 | if limit == 0 {
791 | let error = ParseError(code: .objectNotFound,
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:821:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
822 | }
823 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:789:44: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
787 | options: API.Options = [],
788 | callbackQueue: DispatchQueue = .main,
789 | completion: @escaping (Result<U, ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
790 | if limit == 0 {
791 | let error = ParseError(code: .objectNotFound,
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:920:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
921 | }
922 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:917:44: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
915 | options: API.Options = [],
916 | callbackQueue: DispatchQueue = .main,
917 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
918 | if limit == 0 {
919 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:934:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
935 | }
936 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:917:44: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
915 | options: API.Options = [],
916 | callbackQueue: DispatchQueue = .main,
917 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
918 | if limit == 0 {
919 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:947:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
948 | }
949 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:917:44: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
915 | options: API.Options = [],
916 | callbackQueue: DispatchQueue = .main,
917 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
918 | if limit == 0 {
919 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:967:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
968 | }
969 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:964:27: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
962 | public func withCount(options: API.Options = [],
963 | callbackQueue: DispatchQueue = .main,
964 | completion: @escaping (Result<([ResultType], Int), ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
965 | if limit == 0 {
966 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:980:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
981 | }
982 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:964:27: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
962 | public func withCount(options: API.Options = [],
963 | callbackQueue: DispatchQueue = .main,
964 | completion: @escaping (Result<([ResultType], Int), ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
965 | if limit == 0 {
966 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1006:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1007 | }
1008 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1003:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1001 | options: API.Options = [],
1002 | callbackQueue: DispatchQueue = .main,
1003 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1004 | if limit == 0 {
1005 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1020:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1021 | }
1022 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1003:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1001 | options: API.Options = [],
1002 | callbackQueue: DispatchQueue = .main,
1003 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1004 | if limit == 0 {
1005 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1033:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1034 | }
1035 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1003:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1001 | options: API.Options = [],
1002 | callbackQueue: DispatchQueue = .main,
1003 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1004 | if limit == 0 {
1005 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1099:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1100 | }
1101 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1096:27: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1094 | options: API.Options = [],
1095 | callbackQueue: DispatchQueue = .main,
1096 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1097 | if limit == 0 {
1098 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1114:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1115 | }
1116 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1096:27: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1094 | options: API.Options = [],
1095 | callbackQueue: DispatchQueue = .main,
1096 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1097 | if limit == 0 {
1098 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1139:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1140 | }
1141 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1096:27: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1094 | options: API.Options = [],
1095 | callbackQueue: DispatchQueue = .main,
1096 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1097 | if limit == 0 {
1098 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1224:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1225 | }
1226 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1221:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1219 | options: API.Options = [],
1220 | callbackQueue: DispatchQueue = .main,
1221 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1239:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1240 | }
1241 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1221:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1219 | options: API.Options = [],
1220 | callbackQueue: DispatchQueue = .main,
1221 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1264:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1265 | }
1266 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1221:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1219 | options: API.Options = [],
1220 | callbackQueue: DispatchQueue = .main,
1221 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1277:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1278 | }
1279 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1221:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1219 | options: API.Options = [],
1220 | callbackQueue: DispatchQueue = .main,
1221 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1323:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1324 | }
1325 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1320:26: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1318 | options: API.Options = [],
1319 | callbackQueue: DispatchQueue = .main,
1320 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1321 | if limit == 0 {
1322 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1339:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1340 | }
1341 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1320:26: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1318 | options: API.Options = [],
1319 | callbackQueue: DispatchQueue = .main,
1320 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1321 | if limit == 0 {
1322 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1406:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1407 | }
1408 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1403:47: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1401 | options: API.Options = [],
1402 | callbackQueue: DispatchQueue = .main,
1403 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1404 | if limit == 0 {
1405 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1423:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1424 | }
1425 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1403:47: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1401 | options: API.Options = [],
1402 | callbackQueue: DispatchQueue = .main,
1403 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1404 | if limit == 0 {
1405 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1437:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1438 | }
1439 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1403:47: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1401 | options: API.Options = [],
1402 | callbackQueue: DispatchQueue = .main,
1403 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1404 | if limit == 0 {
1405 | callbackQueue.async {
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[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/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 non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
545 | }
546 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:541:22: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
539 | public func find(options: API.Options = [],
540 | callbackQueue: DispatchQueue = .main,
541 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
542 | if limit == 0 {
543 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:557:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
558 | }
559 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:541:22: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
539 | public func find(options: API.Options = [],
540 | callbackQueue: DispatchQueue = .main,
541 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
542 | if limit == 0 {
543 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:583:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
584 | }
585 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:580:43: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
578 | options: API.Options = [],
579 | callbackQueue: DispatchQueue = .main,
580 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
581 | if limit == 0 {
582 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:597:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
598 | }
599 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:580:43: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
578 | options: API.Options = [],
579 | callbackQueue: DispatchQueue = .main,
580 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
581 | if limit == 0 {
582 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:610:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
611 | }
612 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:580:43: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
578 | options: API.Options = [],
579 | callbackQueue: DispatchQueue = .main,
580 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
581 | if limit == 0 {
582 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:635:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
636 | }
637 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:632:25: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
630 | options: API.Options = [],
631 | callbackQueue: DispatchQueue = .main,
632 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
633 | if self.limit == 0 {
634 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:676:25: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
677 | }
678 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:632:25: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
630 | options: API.Options = [],
631 | callbackQueue: DispatchQueue = .main,
632 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
633 | if self.limit == 0 {
634 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:683:17: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
681 |
682 | callbackQueue.async {
683 | completion(.success(results))
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
684 | }
685 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:632:25: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
630 | options: API.Options = [],
631 | callbackQueue: DispatchQueue = .main,
632 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
633 | if self.limit == 0 {
634 | callbackQueue.async {
/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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
684 | }
685 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:751:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
752 | }
753 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:746:23: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
744 | public func first(options: API.Options = [],
745 | callbackQueue: DispatchQueue = .main,
746 | completion: @escaping (Result<ResultType, ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
747 | if limit == 0 {
748 | let error = ParseError(code: .objectNotFound,
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:764:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
765 | }
766 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:746:23: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
744 | public func first(options: API.Options = [],
745 | callbackQueue: DispatchQueue = .main,
746 | completion: @escaping (Result<ResultType, ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
747 | if limit == 0 {
748 | let error = ParseError(code: .objectNotFound,
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:794:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
795 | }
796 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:789:44: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
787 | options: API.Options = [],
788 | callbackQueue: DispatchQueue = .main,
789 | completion: @escaping (Result<U, ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
790 | if limit == 0 {
791 | let error = ParseError(code: .objectNotFound,
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:808:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
809 | }
810 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:789:44: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
787 | options: API.Options = [],
788 | callbackQueue: DispatchQueue = .main,
789 | completion: @escaping (Result<U, ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
790 | if limit == 0 {
791 | let error = ParseError(code: .objectNotFound,
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:821:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
822 | }
823 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:789:44: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
787 | options: API.Options = [],
788 | callbackQueue: DispatchQueue = .main,
789 | completion: @escaping (Result<U, ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
790 | if limit == 0 {
791 | let error = ParseError(code: .objectNotFound,
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:920:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
921 | }
922 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:917:44: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
915 | options: API.Options = [],
916 | callbackQueue: DispatchQueue = .main,
917 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
918 | if limit == 0 {
919 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:934:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
935 | }
936 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:917:44: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
915 | options: API.Options = [],
916 | callbackQueue: DispatchQueue = .main,
917 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
918 | if limit == 0 {
919 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:947:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
948 | }
949 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:917:44: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
915 | options: API.Options = [],
916 | callbackQueue: DispatchQueue = .main,
917 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
918 | if limit == 0 {
919 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:967:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
968 | }
969 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:964:27: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
962 | public func withCount(options: API.Options = [],
963 | callbackQueue: DispatchQueue = .main,
964 | completion: @escaping (Result<([ResultType], Int), ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
965 | if limit == 0 {
966 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:980:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
981 | }
982 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:964:27: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
962 | public func withCount(options: API.Options = [],
963 | callbackQueue: DispatchQueue = .main,
964 | completion: @escaping (Result<([ResultType], Int), ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
965 | if limit == 0 {
966 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1006:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1007 | }
1008 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1003:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1001 | options: API.Options = [],
1002 | callbackQueue: DispatchQueue = .main,
1003 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1004 | if limit == 0 {
1005 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1020:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1021 | }
1022 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1003:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1001 | options: API.Options = [],
1002 | callbackQueue: DispatchQueue = .main,
1003 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1004 | if limit == 0 {
1005 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1033:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1034 | }
1035 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1003:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1001 | options: API.Options = [],
1002 | callbackQueue: DispatchQueue = .main,
1003 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1004 | if limit == 0 {
1005 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1099:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1100 | }
1101 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1096:27: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1094 | options: API.Options = [],
1095 | callbackQueue: DispatchQueue = .main,
1096 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1097 | if limit == 0 {
1098 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1114:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1115 | }
1116 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1096:27: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1094 | options: API.Options = [],
1095 | callbackQueue: DispatchQueue = .main,
1096 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1097 | if limit == 0 {
1098 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1139:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1140 | }
1141 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1096:27: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1094 | options: API.Options = [],
1095 | callbackQueue: DispatchQueue = .main,
1096 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1097 | if limit == 0 {
1098 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1224:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1225 | }
1226 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1221:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1219 | options: API.Options = [],
1220 | callbackQueue: DispatchQueue = .main,
1221 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1239:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1240 | }
1241 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1221:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1219 | options: API.Options = [],
1220 | callbackQueue: DispatchQueue = .main,
1221 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1264:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1265 | }
1266 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1221:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1219 | options: API.Options = [],
1220 | callbackQueue: DispatchQueue = .main,
1221 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1277:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1278 | }
1279 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1221:48: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1219 | options: API.Options = [],
1220 | callbackQueue: DispatchQueue = .main,
1221 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1222 | if limit == 0 {
1223 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1323:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1324 | }
1325 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1320:26: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1318 | options: API.Options = [],
1319 | callbackQueue: DispatchQueue = .main,
1320 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1321 | if limit == 0 {
1322 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1339:17: warning: capture of non-Sendable type 'T.Type' in an isolated 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 non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1340 | }
1341 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1320:26: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1318 | options: API.Options = [],
1319 | callbackQueue: DispatchQueue = .main,
1320 | completion: @escaping (Result<[ResultType], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
1321 | if limit == 0 {
1322 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1406:17: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1407 | }
1408 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1403:47: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1401 | options: API.Options = [],
1402 | callbackQueue: DispatchQueue = .main,
1403 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1404 | if limit == 0 {
1405 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1423:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1424 | }
1425 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1403:47: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1401 | options: API.Options = [],
1402 | callbackQueue: DispatchQueue = .main,
1403 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1404 | if limit == 0 {
1405 | callbackQueue.async {
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1437:21: warning: capture of non-Sendable type 'U.Type' in an isolated 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 non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1438 | }
1439 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1403:47: warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1401 | options: API.Options = [],
1402 | callbackQueue: DispatchQueue = .main,
1403 | completion: @escaping (Result<[U], ParseError>) -> Void) {
| `- warning: capture of non-Sendable type 'U.Type' in an isolated closure; this is an error in the Swift 6 language mode
1404 | if limit == 0 {
1405 | callbackQueue.async {
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
BUILD FAILURE 6.2 linux