Build Information
Failed to build ParseSwift, reference 5.11.3 (3f02f5
), with Swift 6.0 for Linux on 5 Nov 2024 23:13:31 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:583:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
581 | }
582 |
583 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
584 | var query = self
585 | .order([.ascending("objectId")])
:
605 | let parseError = error as? ParseError ?? ParseError(swift: error)
606 | callbackQueue.async {
607 | completion(.failure(parseError))
| `- note: closure captures 'completion' which is accessible to code in the current task
608 | }
609 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:639:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
637 | return
638 | }
639 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
640 | do {
641 | try await firstCommand().execute(options: options,
642 | callbackQueue: callbackQueue,
643 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
644 | } catch {
645 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:682:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
680 | return
681 | }
682 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
683 | if !usingMongoDB {
684 | do {
685 | try await firstExplainCommand().execute(options: options,
686 | callbackQueue: callbackQueue,
687 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
688 | } catch {
689 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:726:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
724 | return
725 | }
726 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
727 | do {
728 | try await countCommand().execute(options: options,
729 | callbackQueue: callbackQueue,
730 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
731 | } catch {
732 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:765:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
763 | return
764 | }
765 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
766 | if !usingMongoDB {
767 | do {
768 | try await countExplainCommand().execute(options: options,
769 | callbackQueue: callbackQueue,
770 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
771 | } catch {
772 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:810:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
808 | return
809 | }
810 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
811 | do {
812 | try await withCountCommand().execute(options: options,
813 | callbackQueue: callbackQueue,
814 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
815 | } catch {
816 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:849:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
847 | return
848 | }
849 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
850 | if !usingMongoDB {
851 | do {
852 | try await withCountExplainCommand().execute(options: options,
853 | callbackQueue: callbackQueue,
854 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
855 | } catch {
856 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:898:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
896 | return
897 | }
898 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
899 | var options = options
900 | options.insert(.usePrimaryKey)
:
908 | message: "Cannot decode \"where\" to String.")
909 | callbackQueue.async {
910 | completion(.failure(error))
| `- note: closure captures 'completion' which is accessible to code in the current task
911 | }
912 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:970:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
968 | return
969 | }
970 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
971 | var options = options
972 | options.insert(.usePrimaryKey)
:
980 | message: "Cannot decode \"where\" to String.")
981 | callbackQueue.async {
982 | completion(.failure(error))
| `- note: closure captures 'completion' which is accessible to code in the current task
983 | }
984 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1048:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1046 | return
1047 | }
1048 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1049 | var options = options
1050 | options.insert(.usePrimaryKey)
:
1053 | .execute(options: options,
1054 | callbackQueue: callbackQueue,
1055 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
1056 | } catch {
1057 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1095:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1093 | return
1094 | }
1095 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1096 | var options = options
1097 | options.insert(.usePrimaryKey)
:
1101 | .execute(options: options,
1102 | callbackQueue: callbackQueue,
1103 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
1104 | } catch {
1105 | let parseError = error as? ParseError ?? ParseError(swift: error)
[202/203] Compiling ParseSwift QueryWhere.swift
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParsePushPayload/Apple/ParsePushPayloadApple.swift:75:9: warning: stored property 'badge' of 'Sendable'-conforming struct 'ParsePushPayloadApple' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
73 | }
74 | }
75 | var badge: AnyCodable?
| `- warning: stored property 'badge' of 'Sendable'-conforming struct 'ParsePushPayloadApple' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
76 | var sound: AnyCodable?
77 |
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParsePushPayload/Apple/ParsePushPayloadApple.swift:76:9: warning: stored property 'sound' of 'Sendable'-conforming struct 'ParsePushPayloadApple' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
74 | }
75 | var badge: AnyCodable?
76 | var sound: AnyCodable?
| `- warning: stored property 'sound' of 'Sendable'-conforming struct 'ParsePushPayloadApple' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
77 |
78 | /// The type of notification.
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParsePushPayload/ParsePushPayloadAny.swift:35:9: warning: stored property 'badge' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
33 | public var notification: ParsePushFirebaseNotification?
34 | public var alert: ParsePushAppleAlert?
35 | var badge: AnyCodable?
| `- warning: stored property 'badge' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
36 | var sound: AnyCodable?
37 | var priority: AnyCodable?
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParsePushPayload/ParsePushPayloadAny.swift:36:9: warning: stored property 'sound' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
34 | public var alert: ParsePushAppleAlert?
35 | var badge: AnyCodable?
36 | var sound: AnyCodable?
| `- warning: stored property 'sound' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
37 | var priority: AnyCodable?
38 | var contentAvailable: AnyCodable?
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParsePushPayload/ParsePushPayloadAny.swift:37:9: warning: stored property 'priority' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
35 | var badge: AnyCodable?
36 | var sound: AnyCodable?
37 | var priority: AnyCodable?
| `- warning: stored property 'priority' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
38 | var contentAvailable: AnyCodable?
39 | var mutableContent: AnyCodable?
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParsePushPayload/ParsePushPayloadAny.swift:38:9: warning: stored property 'contentAvailable' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
36 | var sound: AnyCodable?
37 | var priority: AnyCodable?
38 | var contentAvailable: AnyCodable?
| `- warning: stored property 'contentAvailable' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
39 | var mutableContent: AnyCodable?
40 |
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParsePushPayload/ParsePushPayloadAny.swift:39:9: warning: stored property 'mutableContent' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
37 | var priority: AnyCodable?
38 | var contentAvailable: AnyCodable?
39 | var mutableContent: AnyCodable?
| `- warning: stored property 'mutableContent' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
40 |
41 | public init(from decoder: Decoder) throws {
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:27:49: warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
25 | try await withCheckedThrowingContinuation { continuation in
26 | self.fetch(options: options,
27 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
28 | }
29 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:45:50: warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
43 | try await withCheckedThrowingContinuation { continuation in
44 | self.create(options: options,
45 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
46 | }
47 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:63:50: warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
61 | try await withCheckedThrowingContinuation { continuation in
62 | self.update(options: options,
63 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
64 | }
65 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:82:50: warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
80 | let result = try await withCheckedThrowingContinuation { continuation in
81 | self.purge(options: options,
82 | completion: continuation.resume)
| |- warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
83 | }
84 | if case let .failure(error) = result {
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:105:50: warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
103 | let result = try await withCheckedThrowingContinuation { continuation in
104 | self.delete(options: options,
105 | completion: continuation.resume)
| |- warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
106 | }
107 | if case let .failure(error) = result {
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:24:18: warning: stored property 'indexes' of 'Sendable'-conforming generic struct 'ParseSchema' has non-sendable type '[String : [String : AnyCodable]]?'; this is an error in the Swift 6 language mode
22 | public var classLevelPermissions: ParseCLP?
23 | internal var fields: [String: ParseField]?
24 | internal var indexes: [String: [String: AnyCodable]]?
| `- warning: stored property 'indexes' of 'Sendable'-conforming generic struct 'ParseSchema' has non-sendable type '[String : [String : AnyCodable]]?'; this is an error in the Swift 6 language mode
25 | internal var pendingIndexes = [String: [String: AnyCodable]]()
26 |
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:25:18: warning: stored property 'pendingIndexes' of 'Sendable'-conforming generic struct 'ParseSchema' has non-sendable type '[String : [String : AnyCodable]]'; this is an error in the Swift 6 language mode
23 | internal var fields: [String: ParseField]?
24 | internal var indexes: [String: [String: AnyCodable]]?
25 | internal var pendingIndexes = [String: [String: AnyCodable]]()
| `- warning: stored property 'pendingIndexes' of 'Sendable'-conforming generic struct 'ParseSchema' has non-sendable type '[String : [String : AnyCodable]]'; this is an error in the Swift 6 language mode
26 |
27 | enum CodingKeys: String, CodingKey {
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer+async.swift:29:50: warning: converting a value of type '(__shared sending Result<ParseServer.Status, ParseError>) -> ()' to type '(Result<ParseServer.Status, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
27 | Self.health(options: options,
28 | allowIntermediateResponses: false,
29 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseServer.Status, ParseError>) -> ()' to type '(Result<ParseServer.Status, 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/ParseServer+async.swift:60:55: warning: converting a value of type '(__shared sending Result<ParseServer.Information, ParseError>) -> ()' to type '(Result<ParseServer.Information, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
58 | try await withCheckedThrowingContinuation { continuation in
59 | Self.information(options: options,
60 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseServer.Information, ParseError>) -> ()' to type '(Result<ParseServer.Information, 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
61 | }
62 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:120:26: warning: type 'ParseServer.Status' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
21 |
22 | /// The health status value of a Parse Server.
23 | public enum Status: String, Codable {
| `- note: consider making enum 'Status' conform to the 'Sendable' protocol
24 | /// The server started and is running.
25 | case ok
:
118 | }
119 |
120 | internal static func healthCommand() -> API.Command<NoBody, Status> {
| `- warning: type 'ParseServer.Status' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
121 | return API.Command(method: .POST,
122 | path: .health) { (data) -> Status in
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:156:26: warning: type 'ParseServer.Information' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 |
34 | /// Any provided information from the Parse Server.
35 | public struct Information: Decodable {
| `- note: consider making struct 'Information' conform to the 'Sendable' protocol
36 |
37 | /// The version of the Parse Server.
:
154 | }
155 |
156 | internal static func infoCommand() -> API.Command<NoBody, Information> {
| `- warning: type 'ParseServer.Information' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
157 | return API.Command(method: .GET,
158 | path: .serverInfo) { (data) -> Information in
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:92:18: warning: type 'ParseServer.Status' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
21 |
22 | /// The health status value of a Parse Server.
23 | public enum Status: String, Codable {
| `- note: consider making enum 'Status' conform to the 'Sendable' protocol
24 | /// The server started and is running.
25 | case ok
:
90 | options.insert(.cachePolicy(.reloadIgnoringLocalCacheData))
91 | await healthCommand()
92 | .execute(options: options,
| `- warning: type 'ParseServer.Status' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
93 | callbackQueue: callbackQueue,
94 | allowIntermediateResponses: allowIntermediateResponses,
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:121:16: warning: type 'ParseServer.Status' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
21 |
22 | /// The health status value of a Parse Server.
23 | public enum Status: String, Codable {
| `- note: consider making enum 'Status' conform to the 'Sendable' protocol
24 | /// The server started and is running.
25 | case ok
:
119 |
120 | internal static func healthCommand() -> API.Command<NoBody, Status> {
121 | return API.Command(method: .POST,
| `- warning: type 'ParseServer.Status' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
122 | path: .health) { (data) -> Status in
123 | return try ParseCoding.jsonDecoder().decode(HealthResponse.self, from: data).status
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:121:20: warning: type 'ParseServer.Status' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
21 |
22 | /// The health status value of a Parse Server.
23 | public enum Status: String, Codable {
| `- note: consider making enum 'Status' conform to the 'Sendable' protocol
24 | /// The server started and is running.
25 | case ok
:
119 |
120 | internal static func healthCommand() -> API.Command<NoBody, Status> {
121 | return API.Command(method: .POST,
| `- warning: type 'ParseServer.Status' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
122 | path: .health) { (data) -> Status in
123 | return try ParseCoding.jsonDecoder().decode(HealthResponse.self, from: data).status
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:150:18: warning: type 'ParseServer.Information' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 |
34 | /// Any provided information from the Parse Server.
35 | public struct Information: Decodable {
| `- note: consider making struct 'Information' conform to the 'Sendable' protocol
36 |
37 | /// The version of the Parse Server.
:
148 | options.insert(.cachePolicy(.reloadIgnoringLocalCacheData))
149 | await infoCommand()
150 | .execute(options: options,
| `- warning: type 'ParseServer.Information' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
151 | callbackQueue: callbackQueue,
152 | completion: completion)
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:157:16: warning: type 'ParseServer.Information' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 |
34 | /// Any provided information from the Parse Server.
35 | public struct Information: Decodable {
| `- note: consider making struct 'Information' conform to the 'Sendable' protocol
36 |
37 | /// The version of the Parse Server.
:
155 |
156 | internal static func infoCommand() -> API.Command<NoBody, Information> {
157 | return API.Command(method: .GET,
| `- warning: type 'ParseServer.Information' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
158 | path: .serverInfo) { (data) -> Information in
159 | return try ParseCoding.jsonDecoder().decode(Information.self, from: data)
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:157:20: warning: type 'ParseServer.Information' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 |
34 | /// Any provided information from the Parse Server.
35 | public struct Information: Decodable {
| `- note: consider making struct 'Information' conform to the 'Sendable' protocol
36 |
37 | /// The version of the Parse Server.
:
155 |
156 | internal static func infoCommand() -> API.Command<NoBody, Information> {
157 | return API.Command(method: .GET,
| `- warning: type 'ParseServer.Information' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
158 | path: .serverInfo) { (data) -> Information in
159 | return try ParseCoding.jsonDecoder().decode(Information.self, from: data)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Pointer+async.swift:28:49: warning: converting a value of type '(__shared sending Result<Pointer<T>.Object, ParseError>) -> ()' (aka '(__shared sending Result<T, ParseError>) -> ()') to type '(Result<Pointer<T>.Object, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
26 | self.fetch(includeKeys: includeKeys,
27 | options: options,
28 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<Pointer<T>.Object, ParseError>) -> ()' (aka '(__shared sending Result<T, ParseError>) -> ()') to type '(Result<Pointer<T>.Object, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') 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
29 | }
30 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:24: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
22 | try await withCheckedThrowingContinuation { continuation in
23 | self.find(options: options,
24 | 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
25 | }
26 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:47: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
45 | self.findExplain(usingMongoDB: usingMongoDB,
46 | options: options,
47 | 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
48 | }
49 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:65: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
63 | self.findAll(batchLimit: batchLimit,
64 | options: options,
65 | 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
66 | }
67 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:78: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
76 | try await withCheckedThrowingContinuation { continuation in
77 | self.first(options: options,
78 | 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
79 | }
80 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:101: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
99 | self.firstExplain(usingMongoDB: usingMongoDB,
100 | options: options,
101 | 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
102 | }
103 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:114: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
112 | try await withCheckedThrowingContinuation { continuation in
113 | self.count(options: options,
114 | 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
115 | }
116 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:137: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
135 | self.countExplain(usingMongoDB: usingMongoDB,
136 | options: options,
137 | 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
138 | }
139 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:151: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
149 | try await withCheckedThrowingContinuation { continuation in
150 | self.withCount(options: options,
151 | 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
152 | }
153 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:174: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
172 | self.withCountExplain(usingMongoDB: usingMongoDB,
173 | options: options,
174 | 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
175 | }
176 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:193: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
191 | self.aggregate(pipeline,
192 | options: options,
193 | 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
194 | }
195 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:222: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
220 | usingMongoDB: usingMongoDB,
221 | options: options,
222 | 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
223 | }
224 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:241: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
239 | self.distinct(key,
240 | options: options,
241 | 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
242 | }
243 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:270: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
268 | usingMongoDB: usingMongoDB,
269 | options: options,
270 | 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
271 | }
272 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:25:18: warning: stored property 'hint' of 'Sendable'-conforming generic struct 'Query' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
23 | internal var isCount: Bool?
24 | internal var explain: Bool?
25 | internal var hint: AnyCodable?
| `- warning: stored property 'hint' of 'Sendable'-conforming generic struct 'Query' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
26 | internal var `where` = QueryWhere()
27 | internal var excludeKeys: Set<String>?
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:32:18: warning: stored property 'pipeline' of 'Sendable'-conforming generic struct 'Query' has non-sendable type '[[String : AnyCodable]]?'; this is an error in the Swift 6 language mode
30 | internal var subqueryReadPreference: String?
31 | internal var distinct: String?
32 | internal var pipeline: [[String: AnyCodable]]?
| `- warning: stored property 'pipeline' of 'Sendable'-conforming generic struct 'Query' has non-sendable type '[[String : AnyCodable]]?'; this is an error in the Swift 6 language mode
33 | internal var fields: Set<String>?
34 | internal var watch: Set<String>?
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:479:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
477 | guard limit > 0 else {
478 | callbackQueue.async {
479 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
480 | }
481 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:491:21: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | let parseError = error as? ParseError ?? ParseError(swift: error)
490 | callbackQueue.async {
491 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
492 | }
493 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:518:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
516 | guard limit > 0 else {
517 | callbackQueue.async {
518 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
519 | }
520 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:531:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
529 | let parseError = error as? ParseError ?? ParseError(swift: error)
530 | callbackQueue.async {
531 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
532 | }
533 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:542:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
540 | let parseError = error as? ParseError ?? ParseError(swift: error)
541 | callbackQueue.async {
542 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
543 | }
544 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:568:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
566 | if self.limit == 0 {
567 | callbackQueue.async {
568 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
569 | }
570 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:578:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
576 | message: "Cannot iterate on a query with sort, skip, or limit.")
577 | callbackQueue.async {
578 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
579 | }
580 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:607:25: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
605 | let parseError = error as? ParseError ?? ParseError(swift: error)
606 | callbackQueue.async {
607 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
608 | }
609 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:614:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
612 | let finalResults = results
613 | callbackQueue.async {
614 | completion(.success(finalResults))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
615 | }
616 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:635:17: warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
633 | message: "Object not found on the server.")
634 | callbackQueue.async {
635 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
636 | }
637 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:647:21: warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
645 | let parseError = error as? ParseError ?? ParseError(swift: error)
646 | callbackQueue.async {
647 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
648 | }
649 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:678:17: warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
676 | message: "Object not found on the server.")
677 | callbackQueue.async {
678 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
679 | }
680 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:691:25: warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
689 | let parseError = error as? ParseError ?? ParseError(swift: error)
690 | callbackQueue.async {
691 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
692 | }
693 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:702:25: warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
700 | let parseError = error as? ParseError ?? ParseError(swift: error)
701 | callbackQueue.async {
702 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
703 | }
704 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:722:17: warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
720 | guard limit > 0 else {
721 | callbackQueue.async {
722 | completion(.success(0))
| |- warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
723 | }
724 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:734:21: warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
732 | let parseError = error as? ParseError ?? ParseError(swift: error)
733 | callbackQueue.async {
734 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
735 | }
736 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:761:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
759 | guard limit > 0 else {
760 | callbackQueue.async {
761 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
762 | }
763 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:774:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
772 | let parseError = error as? ParseError ?? ParseError(swift: error)
773 | callbackQueue.async {
774 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
775 | }
776 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:785:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
783 | let parseError = error as? ParseError ?? ParseError(swift: error)
784 | callbackQueue.async {
785 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
786 | }
787 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:806:17: warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
804 | guard limit > 0 else {
805 | callbackQueue.async {
806 | completion(.success(([], 0)))
| |- warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
807 | }
808 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:818:21: warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
816 | let parseError = error as? ParseError ?? ParseError(swift: error)
817 | callbackQueue.async {
818 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
819 | }
820 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:845:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
843 | guard limit > 0 else {
844 | callbackQueue.async {
845 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
846 | }
847 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:858:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
856 | let parseError = error as? ParseError ?? ParseError(swift: error)
857 | callbackQueue.async {
858 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
859 | }
860 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:869:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
867 | let parseError = error as? ParseError ?? ParseError(swift: error)
868 | callbackQueue.async {
869 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
870 | }
871 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:894:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
892 | guard limit > 0 else {
893 | callbackQueue.async {
894 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
895 | }
896 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:910:21: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
908 | message: "Cannot decode \"where\" to String.")
909 | callbackQueue.async {
910 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
911 | }
912 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:934:21: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
932 | let parseError = error as? ParseError ?? ParseError(swift: error)
933 | callbackQueue.async {
934 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
935 | }
936 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:966:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
964 | guard limit > 0 else {
965 | callbackQueue.async {
966 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
967 | }
968 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:982:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
980 | message: "Cannot decode \"where\" to String.")
981 | callbackQueue.async {
982 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
983 | }
984 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1007:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1005 | let parseError = error as? ParseError ?? ParseError(swift: error)
1006 | callbackQueue.async {
1007 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1008 | }
1009 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1019:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1017 | let parseError = error as? ParseError ?? ParseError(swift: error)
1018 | callbackQueue.async {
1019 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1020 | }
1021 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1044:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1042 | guard limit > 0 else {
1043 | callbackQueue.async {
1044 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1045 | }
1046 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1059:21: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1057 | let parseError = error as? ParseError ?? ParseError(swift: error)
1058 | callbackQueue.async {
1059 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1060 | }
1061 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1091:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1089 | guard limit > 0 else {
1090 | callbackQueue.async {
1091 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1092 | }
1093 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1107:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1105 | let parseError = error as? ParseError ?? ParseError(swift: error)
1106 | callbackQueue.async {
1107 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1108 | }
1109 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1119:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1117 | let parseError = error as? ParseError ?? ParseError(swift: error)
1118 | callbackQueue.async {
1119 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1120 | }
1121 | }
/host/spi-builder-workspace/Sources/ParseSwift/Parse.swift:11:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | internal struct Parse {
11 | static var configuration: ParseConfiguration!
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | static var sessionDelegate: ParseURLSessionDelegate!
13 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/QueryConstraint.swift:52:9: warning: stored property 'value' of 'Sendable'-conforming struct 'QueryConstraint' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
50 |
51 | var key: String
52 | var value: AnyCodable?
| `- warning: stored property 'value' of 'Sendable'-conforming struct 'QueryConstraint' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
53 | var comparator: Comparator?
54 | var isNull = false
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:265:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
263 | callbackQueue: DispatchQueue = .main,
264 | completion: @escaping (Result<Self, ParseError>) -> Void) {
265 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
266 | var options = options
267 | options.insert(.usePrimaryKey)
:
270 | .execute(options: options,
271 | callbackQueue: callbackQueue,
272 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
273 | }
274 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:304:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
302 | callbackQueue: DispatchQueue = .main,
303 | completion: @escaping (Result<Self, ParseError>) -> Void) {
304 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
305 | var options = options
306 | options.insert(.usePrimaryKey)
:
309 | .execute(options: options,
310 | callbackQueue: callbackQueue,
311 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
312 | }
313 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:338:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
336 | }
337 | let schema = mutableSchema
338 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
339 | var options = options
340 | options.insert(.usePrimaryKey)
:
343 | .execute(options: options,
344 | callbackQueue: callbackQueue,
345 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
346 | }
347 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:389:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
387 | completion: @escaping (Result<Void, ParseError>) -> Void
388 | ) {
389 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
390 | var options = options
391 | options.insert(.usePrimaryKey)
:
396 |
397 | case .success:
398 | completion(.success(()))
| `- note: closure captures 'completion' which is accessible to code in the current task
399 | case .failure(let error):
400 | completion(.failure(error))
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:427:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
425 | completion: @escaping (Result<Void, ParseError>) -> Void
426 | ) {
427 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
428 | var options = options
429 | options.insert(.usePrimaryKey)
:
434 |
435 | case .success:
436 | completion(.success(()))
| `- note: closure captures 'completion' which is accessible to code in the current task
437 | case .failure(let error):
438 | completion(.failure(error))
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:88:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
86 | allowIntermediateResponses: Bool = true,
87 | completion: @escaping (Result<Status, ParseError>) -> Void) {
88 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
89 | var options = options
90 | options.insert(.cachePolicy(.reloadIgnoringLocalCacheData))
:
93 | callbackQueue: callbackQueue,
94 | allowIntermediateResponses: allowIntermediateResponses,
95 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
96 | }
97 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:145:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
143 | callbackQueue: DispatchQueue = .main,
144 | completion: @escaping (Result<Information, ParseError>) -> Void) {
145 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
146 | var options = options
147 | options.insert(.usePrimaryKey)
:
150 | .execute(options: options,
151 | callbackQueue: callbackQueue,
152 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
153 | }
154 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:483:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
481 | return
482 | }
483 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
484 | do {
485 | try await findCommand().execute(options: options,
486 | callbackQueue: callbackQueue,
487 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
488 | } catch {
489 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:522:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
520 | return
521 | }
522 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
523 | if !usingMongoDB {
524 | do {
525 | try await findExplainCommand().execute(options: options,
526 | callbackQueue: callbackQueue,
527 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
528 | } catch {
529 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:583:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
581 | }
582 |
583 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
584 | var query = self
585 | .order([.ascending("objectId")])
:
605 | let parseError = error as? ParseError ?? ParseError(swift: error)
606 | callbackQueue.async {
607 | completion(.failure(parseError))
| `- note: closure captures 'completion' which is accessible to code in the current task
608 | }
609 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:639:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
637 | return
638 | }
639 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
640 | do {
641 | try await firstCommand().execute(options: options,
642 | callbackQueue: callbackQueue,
643 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
644 | } catch {
645 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:682:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
680 | return
681 | }
682 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
683 | if !usingMongoDB {
684 | do {
685 | try await firstExplainCommand().execute(options: options,
686 | callbackQueue: callbackQueue,
687 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
688 | } catch {
689 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:726:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
724 | return
725 | }
726 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
727 | do {
728 | try await countCommand().execute(options: options,
729 | callbackQueue: callbackQueue,
730 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
731 | } catch {
732 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:765:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
763 | return
764 | }
765 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
766 | if !usingMongoDB {
767 | do {
768 | try await countExplainCommand().execute(options: options,
769 | callbackQueue: callbackQueue,
770 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
771 | } catch {
772 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:810:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
808 | return
809 | }
810 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
811 | do {
812 | try await withCountCommand().execute(options: options,
813 | callbackQueue: callbackQueue,
814 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
815 | } catch {
816 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:849:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
847 | return
848 | }
849 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
850 | if !usingMongoDB {
851 | do {
852 | try await withCountExplainCommand().execute(options: options,
853 | callbackQueue: callbackQueue,
854 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
855 | } catch {
856 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:898:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
896 | return
897 | }
898 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
899 | var options = options
900 | options.insert(.usePrimaryKey)
:
908 | message: "Cannot decode \"where\" to String.")
909 | callbackQueue.async {
910 | completion(.failure(error))
| `- note: closure captures 'completion' which is accessible to code in the current task
911 | }
912 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:970:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
968 | return
969 | }
970 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
971 | var options = options
972 | options.insert(.usePrimaryKey)
:
980 | message: "Cannot decode \"where\" to String.")
981 | callbackQueue.async {
982 | completion(.failure(error))
| `- note: closure captures 'completion' which is accessible to code in the current task
983 | }
984 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1048:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1046 | return
1047 | }
1048 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1049 | var options = options
1050 | options.insert(.usePrimaryKey)
:
1053 | .execute(options: options,
1054 | callbackQueue: callbackQueue,
1055 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
1056 | } catch {
1057 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1095:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1093 | return
1094 | }
1095 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1096 | var options = options
1097 | options.insert(.usePrimaryKey)
:
1101 | .execute(options: options,
1102 | callbackQueue: callbackQueue,
1103 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
1104 | } catch {
1105 | let parseError = error as? ParseError ?? ParseError(swift: error)
[203/203] Compiling ParseSwift Utility.swift
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParsePushPayload/Apple/ParsePushPayloadApple.swift:75:9: warning: stored property 'badge' of 'Sendable'-conforming struct 'ParsePushPayloadApple' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
73 | }
74 | }
75 | var badge: AnyCodable?
| `- warning: stored property 'badge' of 'Sendable'-conforming struct 'ParsePushPayloadApple' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
76 | var sound: AnyCodable?
77 |
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParsePushPayload/Apple/ParsePushPayloadApple.swift:76:9: warning: stored property 'sound' of 'Sendable'-conforming struct 'ParsePushPayloadApple' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
74 | }
75 | var badge: AnyCodable?
76 | var sound: AnyCodable?
| `- warning: stored property 'sound' of 'Sendable'-conforming struct 'ParsePushPayloadApple' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
77 |
78 | /// The type of notification.
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParsePushPayload/ParsePushPayloadAny.swift:35:9: warning: stored property 'badge' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
33 | public var notification: ParsePushFirebaseNotification?
34 | public var alert: ParsePushAppleAlert?
35 | var badge: AnyCodable?
| `- warning: stored property 'badge' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
36 | var sound: AnyCodable?
37 | var priority: AnyCodable?
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParsePushPayload/ParsePushPayloadAny.swift:36:9: warning: stored property 'sound' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
34 | public var alert: ParsePushAppleAlert?
35 | var badge: AnyCodable?
36 | var sound: AnyCodable?
| `- warning: stored property 'sound' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
37 | var priority: AnyCodable?
38 | var contentAvailable: AnyCodable?
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParsePushPayload/ParsePushPayloadAny.swift:37:9: warning: stored property 'priority' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
35 | var badge: AnyCodable?
36 | var sound: AnyCodable?
37 | var priority: AnyCodable?
| `- warning: stored property 'priority' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
38 | var contentAvailable: AnyCodable?
39 | var mutableContent: AnyCodable?
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParsePushPayload/ParsePushPayloadAny.swift:38:9: warning: stored property 'contentAvailable' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
36 | var sound: AnyCodable?
37 | var priority: AnyCodable?
38 | var contentAvailable: AnyCodable?
| `- warning: stored property 'contentAvailable' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
39 | var mutableContent: AnyCodable?
40 |
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParsePushPayload/ParsePushPayloadAny.swift:39:9: warning: stored property 'mutableContent' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
37 | var priority: AnyCodable?
38 | var contentAvailable: AnyCodable?
39 | var mutableContent: AnyCodable?
| `- warning: stored property 'mutableContent' of 'Sendable'-conforming struct 'ParsePushPayloadAny' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
40 |
41 | public init(from decoder: Decoder) throws {
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:27:49: warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
25 | try await withCheckedThrowingContinuation { continuation in
26 | self.fetch(options: options,
27 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
28 | }
29 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:45:50: warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
43 | try await withCheckedThrowingContinuation { continuation in
44 | self.create(options: options,
45 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
46 | }
47 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:63:50: warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
61 | try await withCheckedThrowingContinuation { continuation in
62 | self.update(options: options,
63 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseSchema<SchemaObject>, ParseError>) -> ()' to type '(Result<ParseSchema<SchemaObject>, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
64 | }
65 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:82:50: warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
80 | let result = try await withCheckedThrowingContinuation { continuation in
81 | self.purge(options: options,
82 | completion: continuation.resume)
| |- warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
83 | }
84 | if case let .failure(error) = result {
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema+async.swift:105:50: warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
103 | let result = try await withCheckedThrowingContinuation { continuation in
104 | self.delete(options: options,
105 | completion: continuation.resume)
| |- warning: converting a value of type '(sending Result<Void, ParseError>) -> ()' to type '(Result<Void, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
106 | }
107 | if case let .failure(error) = result {
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:24:18: warning: stored property 'indexes' of 'Sendable'-conforming generic struct 'ParseSchema' has non-sendable type '[String : [String : AnyCodable]]?'; this is an error in the Swift 6 language mode
22 | public var classLevelPermissions: ParseCLP?
23 | internal var fields: [String: ParseField]?
24 | internal var indexes: [String: [String: AnyCodable]]?
| `- warning: stored property 'indexes' of 'Sendable'-conforming generic struct 'ParseSchema' has non-sendable type '[String : [String : AnyCodable]]?'; this is an error in the Swift 6 language mode
25 | internal var pendingIndexes = [String: [String: AnyCodable]]()
26 |
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:25:18: warning: stored property 'pendingIndexes' of 'Sendable'-conforming generic struct 'ParseSchema' has non-sendable type '[String : [String : AnyCodable]]'; this is an error in the Swift 6 language mode
23 | internal var fields: [String: ParseField]?
24 | internal var indexes: [String: [String: AnyCodable]]?
25 | internal var pendingIndexes = [String: [String: AnyCodable]]()
| `- warning: stored property 'pendingIndexes' of 'Sendable'-conforming generic struct 'ParseSchema' has non-sendable type '[String : [String : AnyCodable]]'; this is an error in the Swift 6 language mode
26 |
27 | enum CodingKeys: String, CodingKey {
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer+async.swift:29:50: warning: converting a value of type '(__shared sending Result<ParseServer.Status, ParseError>) -> ()' to type '(Result<ParseServer.Status, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
27 | Self.health(options: options,
28 | allowIntermediateResponses: false,
29 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseServer.Status, ParseError>) -> ()' to type '(Result<ParseServer.Status, 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/ParseServer+async.swift:60:55: warning: converting a value of type '(__shared sending Result<ParseServer.Information, ParseError>) -> ()' to type '(Result<ParseServer.Information, ParseError>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
58 | try await withCheckedThrowingContinuation { continuation in
59 | Self.information(options: options,
60 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<ParseServer.Information, ParseError>) -> ()' to type '(Result<ParseServer.Information, 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
61 | }
62 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:120:26: warning: type 'ParseServer.Status' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
21 |
22 | /// The health status value of a Parse Server.
23 | public enum Status: String, Codable {
| `- note: consider making enum 'Status' conform to the 'Sendable' protocol
24 | /// The server started and is running.
25 | case ok
:
118 | }
119 |
120 | internal static func healthCommand() -> API.Command<NoBody, Status> {
| `- warning: type 'ParseServer.Status' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
121 | return API.Command(method: .POST,
122 | path: .health) { (data) -> Status in
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:156:26: warning: type 'ParseServer.Information' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 |
34 | /// Any provided information from the Parse Server.
35 | public struct Information: Decodable {
| `- note: consider making struct 'Information' conform to the 'Sendable' protocol
36 |
37 | /// The version of the Parse Server.
:
154 | }
155 |
156 | internal static func infoCommand() -> API.Command<NoBody, Information> {
| `- warning: type 'ParseServer.Information' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
157 | return API.Command(method: .GET,
158 | path: .serverInfo) { (data) -> Information in
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:92:18: warning: type 'ParseServer.Status' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
21 |
22 | /// The health status value of a Parse Server.
23 | public enum Status: String, Codable {
| `- note: consider making enum 'Status' conform to the 'Sendable' protocol
24 | /// The server started and is running.
25 | case ok
:
90 | options.insert(.cachePolicy(.reloadIgnoringLocalCacheData))
91 | await healthCommand()
92 | .execute(options: options,
| `- warning: type 'ParseServer.Status' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
93 | callbackQueue: callbackQueue,
94 | allowIntermediateResponses: allowIntermediateResponses,
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:121:16: warning: type 'ParseServer.Status' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
21 |
22 | /// The health status value of a Parse Server.
23 | public enum Status: String, Codable {
| `- note: consider making enum 'Status' conform to the 'Sendable' protocol
24 | /// The server started and is running.
25 | case ok
:
119 |
120 | internal static func healthCommand() -> API.Command<NoBody, Status> {
121 | return API.Command(method: .POST,
| `- warning: type 'ParseServer.Status' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
122 | path: .health) { (data) -> Status in
123 | return try ParseCoding.jsonDecoder().decode(HealthResponse.self, from: data).status
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:121:20: warning: type 'ParseServer.Status' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
21 |
22 | /// The health status value of a Parse Server.
23 | public enum Status: String, Codable {
| `- note: consider making enum 'Status' conform to the 'Sendable' protocol
24 | /// The server started and is running.
25 | case ok
:
119 |
120 | internal static func healthCommand() -> API.Command<NoBody, Status> {
121 | return API.Command(method: .POST,
| `- warning: type 'ParseServer.Status' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
122 | path: .health) { (data) -> Status in
123 | return try ParseCoding.jsonDecoder().decode(HealthResponse.self, from: data).status
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:150:18: warning: type 'ParseServer.Information' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 |
34 | /// Any provided information from the Parse Server.
35 | public struct Information: Decodable {
| `- note: consider making struct 'Information' conform to the 'Sendable' protocol
36 |
37 | /// The version of the Parse Server.
:
148 | options.insert(.cachePolicy(.reloadIgnoringLocalCacheData))
149 | await infoCommand()
150 | .execute(options: options,
| `- warning: type 'ParseServer.Information' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
151 | callbackQueue: callbackQueue,
152 | completion: completion)
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:157:16: warning: type 'ParseServer.Information' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 |
34 | /// Any provided information from the Parse Server.
35 | public struct Information: Decodable {
| `- note: consider making struct 'Information' conform to the 'Sendable' protocol
36 |
37 | /// The version of the Parse Server.
:
155 |
156 | internal static func infoCommand() -> API.Command<NoBody, Information> {
157 | return API.Command(method: .GET,
| `- warning: type 'ParseServer.Information' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
158 | path: .serverInfo) { (data) -> Information in
159 | return try ParseCoding.jsonDecoder().decode(Information.self, from: data)
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:157:20: warning: type 'ParseServer.Information' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 |
34 | /// Any provided information from the Parse Server.
35 | public struct Information: Decodable {
| `- note: consider making struct 'Information' conform to the 'Sendable' protocol
36 |
37 | /// The version of the Parse Server.
:
155 |
156 | internal static func infoCommand() -> API.Command<NoBody, Information> {
157 | return API.Command(method: .GET,
| `- warning: type 'ParseServer.Information' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
158 | path: .serverInfo) { (data) -> Information in
159 | return try ParseCoding.jsonDecoder().decode(Information.self, from: data)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Pointer+async.swift:28:49: warning: converting a value of type '(__shared sending Result<Pointer<T>.Object, ParseError>) -> ()' (aka '(__shared sending Result<T, ParseError>) -> ()') to type '(Result<Pointer<T>.Object, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
26 | self.fetch(includeKeys: includeKeys,
27 | options: options,
28 | completion: continuation.resume)
| |- warning: converting a value of type '(__shared sending Result<Pointer<T>.Object, ParseError>) -> ()' (aka '(__shared sending Result<T, ParseError>) -> ()') to type '(Result<Pointer<T>.Object, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') 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
29 | }
30 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:24: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
22 | try await withCheckedThrowingContinuation { continuation in
23 | self.find(options: options,
24 | 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
25 | }
26 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:47: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
45 | self.findExplain(usingMongoDB: usingMongoDB,
46 | options: options,
47 | 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
48 | }
49 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:65: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
63 | self.findAll(batchLimit: batchLimit,
64 | options: options,
65 | 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
66 | }
67 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:78: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
76 | try await withCheckedThrowingContinuation { continuation in
77 | self.first(options: options,
78 | 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
79 | }
80 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:101: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
99 | self.firstExplain(usingMongoDB: usingMongoDB,
100 | options: options,
101 | 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
102 | }
103 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:114: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
112 | try await withCheckedThrowingContinuation { continuation in
113 | self.count(options: options,
114 | 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
115 | }
116 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:137: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
135 | self.countExplain(usingMongoDB: usingMongoDB,
136 | options: options,
137 | 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
138 | }
139 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:151: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
149 | try await withCheckedThrowingContinuation { continuation in
150 | self.withCount(options: options,
151 | 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
152 | }
153 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:174: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
172 | self.withCountExplain(usingMongoDB: usingMongoDB,
173 | options: options,
174 | 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
175 | }
176 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:193: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
191 | self.aggregate(pipeline,
192 | options: options,
193 | 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
194 | }
195 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:222: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
220 | usingMongoDB: usingMongoDB,
221 | options: options,
222 | 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
223 | }
224 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:241: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
239 | self.distinct(key,
240 | options: options,
241 | 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
242 | }
243 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query+async.swift:270: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
268 | usingMongoDB: usingMongoDB,
269 | options: options,
270 | 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
271 | }
272 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:25:18: warning: stored property 'hint' of 'Sendable'-conforming generic struct 'Query' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
23 | internal var isCount: Bool?
24 | internal var explain: Bool?
25 | internal var hint: AnyCodable?
| `- warning: stored property 'hint' of 'Sendable'-conforming generic struct 'Query' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
26 | internal var `where` = QueryWhere()
27 | internal var excludeKeys: Set<String>?
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:32:18: warning: stored property 'pipeline' of 'Sendable'-conforming generic struct 'Query' has non-sendable type '[[String : AnyCodable]]?'; this is an error in the Swift 6 language mode
30 | internal var subqueryReadPreference: String?
31 | internal var distinct: String?
32 | internal var pipeline: [[String: AnyCodable]]?
| `- warning: stored property 'pipeline' of 'Sendable'-conforming generic struct 'Query' has non-sendable type '[[String : AnyCodable]]?'; this is an error in the Swift 6 language mode
33 | internal var fields: Set<String>?
34 | internal var watch: Set<String>?
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:479:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
477 | guard limit > 0 else {
478 | callbackQueue.async {
479 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
480 | }
481 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:491:21: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | let parseError = error as? ParseError ?? ParseError(swift: error)
490 | callbackQueue.async {
491 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
492 | }
493 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:518:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
516 | guard limit > 0 else {
517 | callbackQueue.async {
518 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
519 | }
520 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:531:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
529 | let parseError = error as? ParseError ?? ParseError(swift: error)
530 | callbackQueue.async {
531 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
532 | }
533 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:542:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
540 | let parseError = error as? ParseError ?? ParseError(swift: error)
541 | callbackQueue.async {
542 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
543 | }
544 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:568:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
566 | if self.limit == 0 {
567 | callbackQueue.async {
568 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
569 | }
570 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:578:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
576 | message: "Cannot iterate on a query with sort, skip, or limit.")
577 | callbackQueue.async {
578 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
579 | }
580 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:607:25: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
605 | let parseError = error as? ParseError ?? ParseError(swift: error)
606 | callbackQueue.async {
607 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
608 | }
609 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:614:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
612 | let finalResults = results
613 | callbackQueue.async {
614 | completion(.success(finalResults))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
615 | }
616 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:635:17: warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
633 | message: "Object not found on the server.")
634 | callbackQueue.async {
635 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
636 | }
637 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:647:21: warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
645 | let parseError = error as? ParseError ?? ParseError(swift: error)
646 | callbackQueue.async {
647 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<Query<T>.ResultType, ParseError>) -> Void' (aka '(Result<T, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
648 | }
649 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:678:17: warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
676 | message: "Object not found on the server.")
677 | callbackQueue.async {
678 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
679 | }
680 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:691:25: warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
689 | let parseError = error as? ParseError ?? ParseError(swift: error)
690 | callbackQueue.async {
691 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
692 | }
693 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:702:25: warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
700 | let parseError = error as? ParseError ?? ParseError(swift: error)
701 | callbackQueue.async {
702 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<U, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
703 | }
704 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:722:17: warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
720 | guard limit > 0 else {
721 | callbackQueue.async {
722 | completion(.success(0))
| |- warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
723 | }
724 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:734:21: warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
732 | let parseError = error as? ParseError ?? ParseError(swift: error)
733 | callbackQueue.async {
734 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<Int, ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
735 | }
736 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:761:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
759 | guard limit > 0 else {
760 | callbackQueue.async {
761 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
762 | }
763 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:774:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
772 | let parseError = error as? ParseError ?? ParseError(swift: error)
773 | callbackQueue.async {
774 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
775 | }
776 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:785:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
783 | let parseError = error as? ParseError ?? ParseError(swift: error)
784 | callbackQueue.async {
785 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
786 | }
787 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:806:17: warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
804 | guard limit > 0 else {
805 | callbackQueue.async {
806 | completion(.success(([], 0)))
| |- warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
807 | }
808 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:818:21: warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
816 | let parseError = error as? ParseError ?? ParseError(swift: error)
817 | callbackQueue.async {
818 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<([Query<T>.ResultType], Int), ParseError>) -> Void' (aka '(Result<(Array<T>, Int), ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
819 | }
820 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:845:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
843 | guard limit > 0 else {
844 | callbackQueue.async {
845 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
846 | }
847 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:858:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
856 | let parseError = error as? ParseError ?? ParseError(swift: error)
857 | callbackQueue.async {
858 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
859 | }
860 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:869:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
867 | let parseError = error as? ParseError ?? ParseError(swift: error)
868 | callbackQueue.async {
869 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
870 | }
871 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:894:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
892 | guard limit > 0 else {
893 | callbackQueue.async {
894 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
895 | }
896 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:910:21: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
908 | message: "Cannot decode \"where\" to String.")
909 | callbackQueue.async {
910 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
911 | }
912 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:934:21: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
932 | let parseError = error as? ParseError ?? ParseError(swift: error)
933 | callbackQueue.async {
934 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
935 | }
936 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:966:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
964 | guard limit > 0 else {
965 | callbackQueue.async {
966 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
967 | }
968 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:982:21: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
980 | message: "Cannot decode \"where\" to String.")
981 | callbackQueue.async {
982 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
983 | }
984 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1007:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1005 | let parseError = error as? ParseError ?? ParseError(swift: error)
1006 | callbackQueue.async {
1007 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1008 | }
1009 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1019:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1017 | let parseError = error as? ParseError ?? ParseError(swift: error)
1018 | callbackQueue.async {
1019 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1020 | }
1021 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1044:17: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1042 | guard limit > 0 else {
1043 | callbackQueue.async {
1044 | completion(.success([ResultType]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1045 | }
1046 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1059:21: warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
1057 | let parseError = error as? ParseError ?? ParseError(swift: error)
1058 | callbackQueue.async {
1059 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Query<T>.ResultType], ParseError>) -> Void' (aka '(Result<Array<T>, ParseError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1060 | }
1061 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1091:17: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1089 | guard limit > 0 else {
1090 | callbackQueue.async {
1091 | completion(.success([U]()))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1092 | }
1093 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1107:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1105 | let parseError = error as? ParseError ?? ParseError(swift: error)
1106 | callbackQueue.async {
1107 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1108 | }
1109 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1119:25: warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1117 | let parseError = error as? ParseError ?? ParseError(swift: error)
1118 | callbackQueue.async {
1119 | completion(.failure(parseError))
| |- warning: capture of 'completion' with non-sendable type '(Result<[U], ParseError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1120 | }
1121 | }
/host/spi-builder-workspace/Sources/ParseSwift/Parse.swift:11:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | internal struct Parse {
11 | static var configuration: ParseConfiguration!
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | static var sessionDelegate: ParseURLSessionDelegate!
13 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/QueryConstraint.swift:52:9: warning: stored property 'value' of 'Sendable'-conforming struct 'QueryConstraint' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
50 |
51 | var key: String
52 | var value: AnyCodable?
| `- warning: stored property 'value' of 'Sendable'-conforming struct 'QueryConstraint' has non-sendable type 'AnyCodable?'; this is an error in the Swift 6 language mode
53 | var comparator: Comparator?
54 | var isNull = false
/host/spi-builder-workspace/Sources/ParseSwift/Coding/AnyCodable.swift:18:8: note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
16 | Source: https://github.com/Flight-School/AnyCodable
17 | */
18 | struct AnyCodable: Codable {
| `- note: consider making struct 'AnyCodable' conform to the 'Sendable' protocol
19 |
20 | let value: Any
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:265:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
263 | callbackQueue: DispatchQueue = .main,
264 | completion: @escaping (Result<Self, ParseError>) -> Void) {
265 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
266 | var options = options
267 | options.insert(.usePrimaryKey)
:
270 | .execute(options: options,
271 | callbackQueue: callbackQueue,
272 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
273 | }
274 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:304:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
302 | callbackQueue: DispatchQueue = .main,
303 | completion: @escaping (Result<Self, ParseError>) -> Void) {
304 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
305 | var options = options
306 | options.insert(.usePrimaryKey)
:
309 | .execute(options: options,
310 | callbackQueue: callbackQueue,
311 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
312 | }
313 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:338:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
336 | }
337 | let schema = mutableSchema
338 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
339 | var options = options
340 | options.insert(.usePrimaryKey)
:
343 | .execute(options: options,
344 | callbackQueue: callbackQueue,
345 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
346 | }
347 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:389:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
387 | completion: @escaping (Result<Void, ParseError>) -> Void
388 | ) {
389 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
390 | var options = options
391 | options.insert(.usePrimaryKey)
:
396 |
397 | case .success:
398 | completion(.success(()))
| `- note: closure captures 'completion' which is accessible to code in the current task
399 | case .failure(let error):
400 | completion(.failure(error))
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseSchema.swift:427:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
425 | completion: @escaping (Result<Void, ParseError>) -> Void
426 | ) {
427 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
428 | var options = options
429 | options.insert(.usePrimaryKey)
:
434 |
435 | case .success:
436 | completion(.success(()))
| `- note: closure captures 'completion' which is accessible to code in the current task
437 | case .failure(let error):
438 | completion(.failure(error))
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:88:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
86 | allowIntermediateResponses: Bool = true,
87 | completion: @escaping (Result<Status, ParseError>) -> Void) {
88 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
89 | var options = options
90 | options.insert(.cachePolicy(.reloadIgnoringLocalCacheData))
:
93 | callbackQueue: callbackQueue,
94 | allowIntermediateResponses: allowIntermediateResponses,
95 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
96 | }
97 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/ParseServer.swift:145:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
143 | callbackQueue: DispatchQueue = .main,
144 | completion: @escaping (Result<Information, ParseError>) -> Void) {
145 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
146 | var options = options
147 | options.insert(.usePrimaryKey)
:
150 | .execute(options: options,
151 | callbackQueue: callbackQueue,
152 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
153 | }
154 | }
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:483:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
481 | return
482 | }
483 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
484 | do {
485 | try await findCommand().execute(options: options,
486 | callbackQueue: callbackQueue,
487 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
488 | } catch {
489 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:522:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
520 | return
521 | }
522 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
523 | if !usingMongoDB {
524 | do {
525 | try await findExplainCommand().execute(options: options,
526 | callbackQueue: callbackQueue,
527 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
528 | } catch {
529 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:583:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
581 | }
582 |
583 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
584 | var query = self
585 | .order([.ascending("objectId")])
:
605 | let parseError = error as? ParseError ?? ParseError(swift: error)
606 | callbackQueue.async {
607 | completion(.failure(parseError))
| `- note: closure captures 'completion' which is accessible to code in the current task
608 | }
609 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:639:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
637 | return
638 | }
639 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
640 | do {
641 | try await firstCommand().execute(options: options,
642 | callbackQueue: callbackQueue,
643 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
644 | } catch {
645 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:682:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
680 | return
681 | }
682 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
683 | if !usingMongoDB {
684 | do {
685 | try await firstExplainCommand().execute(options: options,
686 | callbackQueue: callbackQueue,
687 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
688 | } catch {
689 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:726:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
724 | return
725 | }
726 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
727 | do {
728 | try await countCommand().execute(options: options,
729 | callbackQueue: callbackQueue,
730 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
731 | } catch {
732 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:765:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
763 | return
764 | }
765 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
766 | if !usingMongoDB {
767 | do {
768 | try await countExplainCommand().execute(options: options,
769 | callbackQueue: callbackQueue,
770 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
771 | } catch {
772 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:810:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
808 | return
809 | }
810 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
811 | do {
812 | try await withCountCommand().execute(options: options,
813 | callbackQueue: callbackQueue,
814 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
815 | } catch {
816 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:849:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
847 | return
848 | }
849 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
850 | if !usingMongoDB {
851 | do {
852 | try await withCountExplainCommand().execute(options: options,
853 | callbackQueue: callbackQueue,
854 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
855 | } catch {
856 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:898:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
896 | return
897 | }
898 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
899 | var options = options
900 | options.insert(.usePrimaryKey)
:
908 | message: "Cannot decode \"where\" to String.")
909 | callbackQueue.async {
910 | completion(.failure(error))
| `- note: closure captures 'completion' which is accessible to code in the current task
911 | }
912 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:970:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
968 | return
969 | }
970 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
971 | var options = options
972 | options.insert(.usePrimaryKey)
:
980 | message: "Cannot decode \"where\" to String.")
981 | callbackQueue.async {
982 | completion(.failure(error))
| `- note: closure captures 'completion' which is accessible to code in the current task
983 | }
984 | return
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1048:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1046 | return
1047 | }
1048 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1049 | var options = options
1050 | options.insert(.usePrimaryKey)
:
1053 | .execute(options: options,
1054 | callbackQueue: callbackQueue,
1055 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
1056 | } catch {
1057 | let parseError = error as? ParseError ?? ParseError(swift: error)
/host/spi-builder-workspace/Sources/ParseSwift/Types/Query.swift:1095:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1093 | return
1094 | }
1095 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1096 | var options = options
1097 | options.insert(.usePrimaryKey)
:
1101 | .execute(options: options,
1102 | callbackQueue: callbackQueue,
1103 | completion: completion)
| `- note: closure captures 'completion' which is accessible to code in the current task
1104 | } catch {
1105 | let parseError = error as? ParseError ?? ParseError(swift: error)
BUILD FAILURE 6.0 linux