Build Information
Successful build of swift-api-client, reference 1.44.0 (b098f1
), with Swift 6.2 (beta) for macOS (SPM) on 23 Jun 2025 07:59:30 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
16 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
17 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
18 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
| |- warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.NestedEncodingStrategy' instead
19 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
20 | ) -> Self {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:19:41: warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
17 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
18 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
19 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
| |- warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.BoolEncodingStrategy' instead
20 | ) -> Self {
21 | MultipartFormDataEncoder(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:47:42: warning: 'ArrayEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.ArrayEncodingStrategy' [#DeprecatedDeclaration]
45 | dateEncodingStrategy: JSONEncoder.DateEncodingStrategy = .deferredToDate,
46 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
47 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
| |- warning: 'ArrayEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.ArrayEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.ArrayEncodingStrategy' instead
48 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
49 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:48:43: warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
46 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
47 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
48 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
| |- warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.NestedEncodingStrategy' instead
49 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
50 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:49:41: warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
47 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
48 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
49 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
| |- warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.BoolEncodingStrategy' instead
50 | ) {
51 | self.boundary = boundary ?? RandomBoundaryGenerator.defaultBoundary
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[390/470] Compiling SwiftAPIClient RequestBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:17:42: warning: 'ArrayEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.ArrayEncodingStrategy' [#DeprecatedDeclaration]
15 | dateEncodingStrategy: JSONEncoder.DateEncodingStrategy = .deferredToDate,
16 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
17 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
| |- warning: 'ArrayEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.ArrayEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.ArrayEncodingStrategy' instead
18 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
19 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:18:43: warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
16 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
17 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
18 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
| |- warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.NestedEncodingStrategy' instead
19 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
20 | ) -> Self {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:19:41: warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
17 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
18 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
19 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
| |- warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.BoolEncodingStrategy' instead
20 | ) -> Self {
21 | MultipartFormDataEncoder(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:47:42: warning: 'ArrayEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.ArrayEncodingStrategy' [#DeprecatedDeclaration]
45 | dateEncodingStrategy: JSONEncoder.DateEncodingStrategy = .deferredToDate,
46 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
47 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
| |- warning: 'ArrayEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.ArrayEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.ArrayEncodingStrategy' instead
48 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
49 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:48:43: warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
46 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
47 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
48 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
| |- warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.NestedEncodingStrategy' instead
49 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
50 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:49:41: warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
47 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
48 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
49 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
| |- warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.BoolEncodingStrategy' instead
50 | ) {
51 | self.boundary = boundary ?? RandomBoundaryGenerator.defaultBoundary
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[391/470] Compiling SwiftAPIClient AsyncValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:17:42: warning: 'ArrayEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.ArrayEncodingStrategy' [#DeprecatedDeclaration]
15 | dateEncodingStrategy: JSONEncoder.DateEncodingStrategy = .deferredToDate,
16 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
17 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
| |- warning: 'ArrayEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.ArrayEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.ArrayEncodingStrategy' instead
18 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
19 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:18:43: warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
16 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
17 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
18 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
| |- warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.NestedEncodingStrategy' instead
19 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
20 | ) -> Self {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:19:41: warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
17 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
18 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
19 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
| |- warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.BoolEncodingStrategy' instead
20 | ) -> Self {
21 | MultipartFormDataEncoder(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:47:42: warning: 'ArrayEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.ArrayEncodingStrategy' [#DeprecatedDeclaration]
45 | dateEncodingStrategy: JSONEncoder.DateEncodingStrategy = .deferredToDate,
46 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
47 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
| |- warning: 'ArrayEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.ArrayEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.ArrayEncodingStrategy' instead
48 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
49 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:48:43: warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
46 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
47 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
48 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
| |- warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.NestedEncodingStrategy' instead
49 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
50 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:49:41: warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
47 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
48 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
49 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
| |- warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.BoolEncodingStrategy' instead
50 | ) {
51 | self.boundary = boundary ?? RandomBoundaryGenerator.defaultBoundary
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[400/470] Compiling SwiftAPIClient ContentSerializer.swift
[401/470] Compiling SwiftAPIClient ContentType.swift
[402/470] Compiling SwiftAPIClient Errors.swift
[403/470] Compiling SwiftAPIClient HTTPFields.swift
[404/470] Compiling SwiftAPIClient HTTPRequestComponents.swift
[405/470] Compiling SwiftAPIClient LoggingComponent.swift
[406/470] Compiling SwiftAPIClient Mockable.swift
[407/470] Compiling SwiftAPIClient RedirectBehaviour.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RateLimitModifier.swift:62:46: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | count += 1
61 | try await withThrowingSynchronizedAccess(id: id) {
62 | try await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | }
64 | res = try await next(request, configs)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RateLimitModifier.swift:47:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | let maxCount: Int
46 |
47 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | request: HTTPRequestComponents,
49 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RateLimitModifier.swift:62:46: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | count += 1
61 | try await withThrowingSynchronizedAccess(id: id) {
62 | try await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | }
64 | res = try await next(request, configs)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RateLimitModifier.swift:47:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | let maxCount: Int
46 |
47 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | request: HTTPRequestComponents,
49 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RateLimitModifier.swift:62:46: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | count += 1
61 | try await withThrowingSynchronizedAccess(id: id) {
62 | try await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | }
64 | res = try await next(request, configs)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RateLimitModifier.swift:47:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | let maxCount: Int
46 |
47 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | request: HTTPRequestComponents,
49 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RateLimitModifier.swift:62:46: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | count += 1
61 | try await withThrowingSynchronizedAccess(id: id) {
62 | try await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | }
64 | res = try await next(request, configs)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RateLimitModifier.swift:47:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | let maxCount: Int
46 |
47 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | request: HTTPRequestComponents,
49 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RateLimitModifier.swift:62:46: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | count += 1
61 | try await withThrowingSynchronizedAccess(id: id) {
62 | try await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | }
64 | res = try await next(request, configs)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RateLimitModifier.swift:47:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | let maxCount: Int
46 |
47 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | request: HTTPRequestComponents,
49 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RateLimitModifier.swift:62:46: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | count += 1
61 | try await withThrowingSynchronizedAccess(id: id) {
62 | try await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | }
64 | res = try await next(request, configs)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RateLimitModifier.swift:47:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | let maxCount: Int
46 |
47 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | request: HTTPRequestComponents,
49 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RateLimitModifier.swift:62:46: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | count += 1
61 | try await withThrowingSynchronizedAccess(id: id) {
62 | try await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | }
64 | res = try await next(request, configs)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RateLimitModifier.swift:47:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | let maxCount: Int
46 |
47 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | request: HTTPRequestComponents,
49 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RateLimitModifier.swift:62:46: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | count += 1
61 | try await withThrowingSynchronizedAccess(id: id) {
62 | try await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | }
64 | res = try await next(request, configs)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RateLimitModifier.swift:47:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | let maxCount: Int
46 |
47 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | request: HTTPRequestComponents,
49 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:10: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
82 | }
83 | return (value, httpResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:64:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:10: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
82 | }
83 | return (value, httpResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:64:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:10: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
82 | }
83 | return (value, httpResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:64:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:10: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
82 | }
83 | return (value, httpResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:64:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:10: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
82 | }
83 | return (value, httpResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:64:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:10: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
82 | }
83 | return (value, httpResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:64:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:10: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
82 | }
83 | return (value, httpResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:64:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:10: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
82 | }
83 | return (value, httpResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:64:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:10: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
82 | }
83 | return (value, httpResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:64:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:10: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
82 | }
83 | return (value, httpResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:64:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:10: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
82 | }
83 | return (value, httpResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:64:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:10: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
82 | }
83 | return (value, httpResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:64:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:10: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
82 | }
83 | return (value, httpResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:64:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:10: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
82 | }
83 | return (value, httpResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:64:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:10: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
82 | }
83 | return (value, httpResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:64:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:10: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
82 | }
83 | return (value, httpResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:64:7: warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- warning: capture of non-sendable type 'ID.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
[455/470] Compiling SwiftAPIClient Publisher+Create.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:46:33: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | guard let self else { return }
45 | Task {
46 | _ = await self.subscriber?.receive(output)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | }
48 | },
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:44:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
44 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | Task {
46 | _ = await self.subscriber?.receive(output)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:52:29: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | guard let self else { return }
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
53 | await self._cancel()
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:50:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | },
49 | { [weak self] completion in
50 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:59:14: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
57 | guard let self else { return }
58 | Task {
59 | await self.onCancel(onCancel)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:57:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
55 | },
56 | { [weak self] onCancel in
57 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | Task {
59 | await self.onCancel(onCancel)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:65:23: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | if let failure, !(failure is Never) {
64 | Task {
65 | await subscriber?.receive(completion: .failure(failure))
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
66 | await _cancel()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:41:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | }
40 |
41 | nonisolated func start() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:75:12: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
73 | nonisolated func cancel() {
74 | Task {
75 | await self._cancel()
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:73:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | nonisolated func request(_: Subscribers.Demand) {}
72 |
73 | nonisolated func cancel() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | Task {
75 | await self._cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:19:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
17 | task: @escaping @Sendable () async throws -> T
18 | ) async throws -> T {
19 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
20 | if let task = cached as? Task<T, Error> {
21 | return try await task.value
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:58:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
56 | task: @escaping @Sendable () async -> T
57 | ) async -> T {
58 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
59 | if let task = cached as? Task<T, Error> {
60 | // logger("Attempted to access a throwing synchronized task from a non-throwing context.")
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:96:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
94 | @discardableResult
95 | public func waitForThrowingSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async throws -> T? {
96 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
97 | return nil
98 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:123:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
121 | @discardableResult
122 | public func waitForSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async -> T? {
123 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
124 | return nil
125 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
[456/470] Compiling SwiftAPIClient Publishers+Task.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:46:33: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | guard let self else { return }
45 | Task {
46 | _ = await self.subscriber?.receive(output)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | }
48 | },
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:44:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
44 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | Task {
46 | _ = await self.subscriber?.receive(output)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:52:29: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | guard let self else { return }
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
53 | await self._cancel()
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:50:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | },
49 | { [weak self] completion in
50 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:59:14: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
57 | guard let self else { return }
58 | Task {
59 | await self.onCancel(onCancel)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:57:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
55 | },
56 | { [weak self] onCancel in
57 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | Task {
59 | await self.onCancel(onCancel)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:65:23: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | if let failure, !(failure is Never) {
64 | Task {
65 | await subscriber?.receive(completion: .failure(failure))
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
66 | await _cancel()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:41:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | }
40 |
41 | nonisolated func start() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:75:12: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
73 | nonisolated func cancel() {
74 | Task {
75 | await self._cancel()
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:73:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | nonisolated func request(_: Subscribers.Demand) {}
72 |
73 | nonisolated func cancel() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | Task {
75 | await self._cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:19:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
17 | task: @escaping @Sendable () async throws -> T
18 | ) async throws -> T {
19 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
20 | if let task = cached as? Task<T, Error> {
21 | return try await task.value
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:58:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
56 | task: @escaping @Sendable () async -> T
57 | ) async -> T {
58 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
59 | if let task = cached as? Task<T, Error> {
60 | // logger("Attempted to access a throwing synchronized task from a non-throwing context.")
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:96:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
94 | @discardableResult
95 | public func waitForThrowingSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async throws -> T? {
96 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
97 | return nil
98 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:123:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
121 | @discardableResult
122 | public func waitForSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async -> T? {
123 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
124 | return nil
125 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
[457/470] Compiling SwiftAPIClient Reachability.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:46:33: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | guard let self else { return }
45 | Task {
46 | _ = await self.subscriber?.receive(output)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | }
48 | },
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:44:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
44 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | Task {
46 | _ = await self.subscriber?.receive(output)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:52:29: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | guard let self else { return }
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
53 | await self._cancel()
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:50:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | },
49 | { [weak self] completion in
50 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:59:14: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
57 | guard let self else { return }
58 | Task {
59 | await self.onCancel(onCancel)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:57:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
55 | },
56 | { [weak self] onCancel in
57 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | Task {
59 | await self.onCancel(onCancel)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:65:23: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | if let failure, !(failure is Never) {
64 | Task {
65 | await subscriber?.receive(completion: .failure(failure))
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
66 | await _cancel()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:41:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | }
40 |
41 | nonisolated func start() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:75:12: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
73 | nonisolated func cancel() {
74 | Task {
75 | await self._cancel()
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:73:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | nonisolated func request(_: Subscribers.Demand) {}
72 |
73 | nonisolated func cancel() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | Task {
75 | await self._cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:19:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
17 | task: @escaping @Sendable () async throws -> T
18 | ) async throws -> T {
19 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
20 | if let task = cached as? Task<T, Error> {
21 | return try await task.value
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:58:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
56 | task: @escaping @Sendable () async -> T
57 | ) async -> T {
58 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
59 | if let task = cached as? Task<T, Error> {
60 | // logger("Attempted to access a throwing synchronized task from a non-throwing context.")
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:96:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
94 | @discardableResult
95 | public func waitForThrowingSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async throws -> T? {
96 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
97 | return nil
98 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:123:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
121 | @discardableResult
122 | public func waitForSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async -> T? {
123 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
124 | return nil
125 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
[458/470] Compiling SwiftAPIClient Status+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:46:33: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | guard let self else { return }
45 | Task {
46 | _ = await self.subscriber?.receive(output)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | }
48 | },
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:44:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
44 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | Task {
46 | _ = await self.subscriber?.receive(output)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:52:29: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | guard let self else { return }
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
53 | await self._cancel()
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:50:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | },
49 | { [weak self] completion in
50 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:59:14: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
57 | guard let self else { return }
58 | Task {
59 | await self.onCancel(onCancel)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:57:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
55 | },
56 | { [weak self] onCancel in
57 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | Task {
59 | await self.onCancel(onCancel)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:65:23: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | if let failure, !(failure is Never) {
64 | Task {
65 | await subscriber?.receive(completion: .failure(failure))
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
66 | await _cancel()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:41:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | }
40 |
41 | nonisolated func start() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:75:12: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
73 | nonisolated func cancel() {
74 | Task {
75 | await self._cancel()
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:73:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | nonisolated func request(_: Subscribers.Demand) {}
72 |
73 | nonisolated func cancel() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | Task {
75 | await self._cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:19:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
17 | task: @escaping @Sendable () async throws -> T
18 | ) async throws -> T {
19 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
20 | if let task = cached as? Task<T, Error> {
21 | return try await task.value
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:58:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
56 | task: @escaping @Sendable () async -> T
57 | ) async -> T {
58 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
59 | if let task = cached as? Task<T, Error> {
60 | // logger("Attempted to access a throwing synchronized task from a non-throwing context.")
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:96:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
94 | @discardableResult
95 | public func waitForThrowingSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async throws -> T? {
96 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
97 | return nil
98 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:123:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
121 | @discardableResult
122 | public func waitForSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async -> T? {
123 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
124 | return nil
125 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
[459/470] Compiling SwiftAPIClient URLSessionDelegateWrapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:46:33: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | guard let self else { return }
45 | Task {
46 | _ = await self.subscriber?.receive(output)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | }
48 | },
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:44:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
44 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | Task {
46 | _ = await self.subscriber?.receive(output)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:52:29: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | guard let self else { return }
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
53 | await self._cancel()
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:50:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | },
49 | { [weak self] completion in
50 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:59:14: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
57 | guard let self else { return }
58 | Task {
59 | await self.onCancel(onCancel)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:57:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
55 | },
56 | { [weak self] onCancel in
57 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | Task {
59 | await self.onCancel(onCancel)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:65:23: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | if let failure, !(failure is Never) {
64 | Task {
65 | await subscriber?.receive(completion: .failure(failure))
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
66 | await _cancel()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:41:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | }
40 |
41 | nonisolated func start() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:75:12: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
73 | nonisolated func cancel() {
74 | Task {
75 | await self._cancel()
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:73:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | nonisolated func request(_: Subscribers.Demand) {}
72 |
73 | nonisolated func cancel() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | Task {
75 | await self._cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:19:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
17 | task: @escaping @Sendable () async throws -> T
18 | ) async throws -> T {
19 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
20 | if let task = cached as? Task<T, Error> {
21 | return try await task.value
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:58:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
56 | task: @escaping @Sendable () async -> T
57 | ) async -> T {
58 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
59 | if let task = cached as? Task<T, Error> {
60 | // logger("Attempted to access a throwing synchronized task from a non-throwing context.")
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:96:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
94 | @discardableResult
95 | public func waitForThrowingSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async throws -> T? {
96 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
97 | return nil
98 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:123:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
121 | @discardableResult
122 | public func waitForSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async -> T? {
123 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
124 | return nil
125 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
[460/470] Compiling SwiftAPIClient UpdateMetrics.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:46:33: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | guard let self else { return }
45 | Task {
46 | _ = await self.subscriber?.receive(output)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | }
48 | },
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:44:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
44 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | Task {
46 | _ = await self.subscriber?.receive(output)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:52:29: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | guard let self else { return }
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
53 | await self._cancel()
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:50:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | },
49 | { [weak self] completion in
50 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:59:14: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
57 | guard let self else { return }
58 | Task {
59 | await self.onCancel(onCancel)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:57:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
55 | },
56 | { [weak self] onCancel in
57 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | Task {
59 | await self.onCancel(onCancel)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:65:23: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | if let failure, !(failure is Never) {
64 | Task {
65 | await subscriber?.receive(completion: .failure(failure))
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
66 | await _cancel()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:41:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | }
40 |
41 | nonisolated func start() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:75:12: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
73 | nonisolated func cancel() {
74 | Task {
75 | await self._cancel()
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:73:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | nonisolated func request(_: Subscribers.Demand) {}
72 |
73 | nonisolated func cancel() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | Task {
75 | await self._cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:19:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
17 | task: @escaping @Sendable () async throws -> T
18 | ) async throws -> T {
19 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
20 | if let task = cached as? Task<T, Error> {
21 | return try await task.value
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:58:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
56 | task: @escaping @Sendable () async -> T
57 | ) async -> T {
58 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
59 | if let task = cached as? Task<T, Error> {
60 | // logger("Attempted to access a throwing synchronized task from a non-throwing context.")
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:96:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
94 | @discardableResult
95 | public func waitForThrowingSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async throws -> T? {
96 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
97 | return nil
98 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:123:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
121 | @discardableResult
122 | public func waitForSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async -> T? {
123 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
124 | return nil
125 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
[461/470] Compiling SwiftAPIClient WithSynchronizedAccess.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:46:33: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | guard let self else { return }
45 | Task {
46 | _ = await self.subscriber?.receive(output)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | }
48 | },
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:44:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
44 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | Task {
46 | _ = await self.subscriber?.receive(output)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:52:29: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | guard let self else { return }
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
53 | await self._cancel()
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:50:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | },
49 | { [weak self] completion in
50 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:59:14: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
57 | guard let self else { return }
58 | Task {
59 | await self.onCancel(onCancel)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:57:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
55 | },
56 | { [weak self] onCancel in
57 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | Task {
59 | await self.onCancel(onCancel)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:65:23: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | if let failure, !(failure is Never) {
64 | Task {
65 | await subscriber?.receive(completion: .failure(failure))
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
66 | await _cancel()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:41:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | }
40 |
41 | nonisolated func start() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:75:12: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
73 | nonisolated func cancel() {
74 | Task {
75 | await self._cancel()
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:73:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | nonisolated func request(_: Subscribers.Demand) {}
72 |
73 | nonisolated func cancel() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | Task {
75 | await self._cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:19:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
17 | task: @escaping @Sendable () async throws -> T
18 | ) async throws -> T {
19 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
20 | if let task = cached as? Task<T, Error> {
21 | return try await task.value
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:58:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
56 | task: @escaping @Sendable () async -> T
57 | ) async -> T {
58 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
59 | if let task = cached as? Task<T, Error> {
60 | // logger("Attempted to access a throwing synchronized task from a non-throwing context.")
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:96:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
94 | @discardableResult
95 | public func waitForThrowingSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async throws -> T? {
96 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
97 | return nil
98 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:123:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
121 | @discardableResult
122 | public func waitForSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async -> T? {
123 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
124 | return nil
125 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:46:33: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | guard let self else { return }
45 | Task {
46 | _ = await self.subscriber?.receive(output)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | }
48 | },
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:44:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
44 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | Task {
46 | _ = await self.subscriber?.receive(output)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:52:29: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | guard let self else { return }
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
53 | await self._cancel()
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:50:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | },
49 | { [weak self] completion in
50 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:59:14: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
57 | guard let self else { return }
58 | Task {
59 | await self.onCancel(onCancel)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:57:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
55 | },
56 | { [weak self] onCancel in
57 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | Task {
59 | await self.onCancel(onCancel)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:65:23: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | if let failure, !(failure is Never) {
64 | Task {
65 | await subscriber?.receive(completion: .failure(failure))
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
66 | await _cancel()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:41:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | }
40 |
41 | nonisolated func start() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:75:12: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
73 | nonisolated func cancel() {
74 | Task {
75 | await self._cancel()
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:73:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | nonisolated func request(_: Subscribers.Demand) {}
72 |
73 | nonisolated func cancel() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | Task {
75 | await self._cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:19:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
17 | task: @escaping @Sendable () async throws -> T
18 | ) async throws -> T {
19 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
20 | if let task = cached as? Task<T, Error> {
21 | return try await task.value
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:58:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
56 | task: @escaping @Sendable () async -> T
57 | ) async -> T {
58 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
59 | if let task = cached as? Task<T, Error> {
60 | // logger("Attempted to access a throwing synchronized task from a non-throwing context.")
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:96:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
94 | @discardableResult
95 | public func waitForThrowingSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async throws -> T? {
96 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
97 | return nil
98 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:123:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
121 | @discardableResult
122 | public func waitForSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async -> T? {
123 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
124 | return nil
125 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:46:33: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | guard let self else { return }
45 | Task {
46 | _ = await self.subscriber?.receive(output)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | }
48 | },
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:44:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
44 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | Task {
46 | _ = await self.subscriber?.receive(output)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:52:29: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | guard let self else { return }
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
53 | await self._cancel()
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:50:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | },
49 | { [weak self] completion in
50 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:59:14: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
57 | guard let self else { return }
58 | Task {
59 | await self.onCancel(onCancel)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:57:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
55 | },
56 | { [weak self] onCancel in
57 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | Task {
59 | await self.onCancel(onCancel)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:65:23: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | if let failure, !(failure is Never) {
64 | Task {
65 | await subscriber?.receive(completion: .failure(failure))
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
66 | await _cancel()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:41:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | }
40 |
41 | nonisolated func start() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:75:12: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
73 | nonisolated func cancel() {
74 | Task {
75 | await self._cancel()
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:73:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | nonisolated func request(_: Subscribers.Demand) {}
72 |
73 | nonisolated func cancel() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | Task {
75 | await self._cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:19:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
17 | task: @escaping @Sendable () async throws -> T
18 | ) async throws -> T {
19 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
20 | if let task = cached as? Task<T, Error> {
21 | return try await task.value
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:58:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
56 | task: @escaping @Sendable () async -> T
57 | ) async -> T {
58 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
59 | if let task = cached as? Task<T, Error> {
60 | // logger("Attempted to access a throwing synchronized task from a non-throwing context.")
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:96:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
94 | @discardableResult
95 | public func waitForThrowingSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async throws -> T? {
96 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
97 | return nil
98 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:123:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
121 | @discardableResult
122 | public func waitForSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async -> T? {
123 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
124 | return nil
125 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:46:33: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | guard let self else { return }
45 | Task {
46 | _ = await self.subscriber?.receive(output)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | }
48 | },
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:44:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
44 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | Task {
46 | _ = await self.subscriber?.receive(output)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:52:29: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | guard let self else { return }
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
53 | await self._cancel()
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:50:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | },
49 | { [weak self] completion in
50 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:59:14: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
57 | guard let self else { return }
58 | Task {
59 | await self.onCancel(onCancel)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:57:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
55 | },
56 | { [weak self] onCancel in
57 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | Task {
59 | await self.onCancel(onCancel)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:65:23: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | if let failure, !(failure is Never) {
64 | Task {
65 | await subscriber?.receive(completion: .failure(failure))
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
66 | await _cancel()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:41:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | }
40 |
41 | nonisolated func start() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:75:12: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
73 | nonisolated func cancel() {
74 | Task {
75 | await self._cancel()
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:73:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | nonisolated func request(_: Subscribers.Demand) {}
72 |
73 | nonisolated func cancel() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | Task {
75 | await self._cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:19:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
17 | task: @escaping @Sendable () async throws -> T
18 | ) async throws -> T {
19 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
20 | if let task = cached as? Task<T, Error> {
21 | return try await task.value
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:58:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
56 | task: @escaping @Sendable () async -> T
57 | ) async -> T {
58 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
59 | if let task = cached as? Task<T, Error> {
60 | // logger("Attempted to access a throwing synchronized task from a non-throwing context.")
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:96:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
94 | @discardableResult
95 | public func waitForThrowingSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async throws -> T? {
96 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
97 | return nil
98 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:123:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
121 | @discardableResult
122 | public func waitForSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async -> T? {
123 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
124 | return nil
125 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:46:33: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | guard let self else { return }
45 | Task {
46 | _ = await self.subscriber?.receive(output)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | }
48 | },
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:44:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
44 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | Task {
46 | _ = await self.subscriber?.receive(output)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:52:29: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | guard let self else { return }
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
53 | await self._cancel()
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:50:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | },
49 | { [weak self] completion in
50 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:59:14: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
57 | guard let self else { return }
58 | Task {
59 | await self.onCancel(onCancel)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:57:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
55 | },
56 | { [weak self] onCancel in
57 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | Task {
59 | await self.onCancel(onCancel)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:65:23: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | if let failure, !(failure is Never) {
64 | Task {
65 | await subscriber?.receive(completion: .failure(failure))
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
66 | await _cancel()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:41:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | }
40 |
41 | nonisolated func start() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:75:12: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
73 | nonisolated func cancel() {
74 | Task {
75 | await self._cancel()
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:73:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | nonisolated func request(_: Subscribers.Demand) {}
72 |
73 | nonisolated func cancel() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | Task {
75 | await self._cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:19:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
17 | task: @escaping @Sendable () async throws -> T
18 | ) async throws -> T {
19 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
20 | if let task = cached as? Task<T, Error> {
21 | return try await task.value
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:58:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
56 | task: @escaping @Sendable () async -> T
57 | ) async -> T {
58 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
59 | if let task = cached as? Task<T, Error> {
60 | // logger("Attempted to access a throwing synchronized task from a non-throwing context.")
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:96:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
94 | @discardableResult
95 | public func waitForThrowingSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async throws -> T? {
96 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
97 | return nil
98 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:123:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
121 | @discardableResult
122 | public func waitForSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async -> T? {
123 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
124 | return nil
125 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:46:33: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | guard let self else { return }
45 | Task {
46 | _ = await self.subscriber?.receive(output)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | }
48 | },
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:44:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
44 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | Task {
46 | _ = await self.subscriber?.receive(output)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:52:29: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | guard let self else { return }
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
53 | await self._cancel()
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:50:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | },
49 | { [weak self] completion in
50 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:59:14: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
57 | guard let self else { return }
58 | Task {
59 | await self.onCancel(onCancel)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:57:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
55 | },
56 | { [weak self] onCancel in
57 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | Task {
59 | await self.onCancel(onCancel)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:65:23: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | if let failure, !(failure is Never) {
64 | Task {
65 | await subscriber?.receive(completion: .failure(failure))
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
66 | await _cancel()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:41:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | }
40 |
41 | nonisolated func start() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:75:12: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
73 | nonisolated func cancel() {
74 | Task {
75 | await self._cancel()
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:73:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | nonisolated func request(_: Subscribers.Demand) {}
72 |
73 | nonisolated func cancel() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | Task {
75 | await self._cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:19:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
17 | task: @escaping @Sendable () async throws -> T
18 | ) async throws -> T {
19 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
20 | if let task = cached as? Task<T, Error> {
21 | return try await task.value
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:58:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
56 | task: @escaping @Sendable () async -> T
57 | ) async -> T {
58 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
59 | if let task = cached as? Task<T, Error> {
60 | // logger("Attempted to access a throwing synchronized task from a non-throwing context.")
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:96:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
94 | @discardableResult
95 | public func waitForThrowingSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async throws -> T? {
96 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
97 | return nil
98 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:123:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
121 | @discardableResult
122 | public func waitForSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async -> T? {
123 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
124 | return nil
125 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:46:33: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | guard let self else { return }
45 | Task {
46 | _ = await self.subscriber?.receive(output)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | }
48 | },
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:44:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
44 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | Task {
46 | _ = await self.subscriber?.receive(output)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:52:29: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | guard let self else { return }
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
53 | await self._cancel()
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:50:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | },
49 | { [weak self] completion in
50 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:59:14: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
57 | guard let self else { return }
58 | Task {
59 | await self.onCancel(onCancel)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:57:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
55 | },
56 | { [weak self] onCancel in
57 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | Task {
59 | await self.onCancel(onCancel)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:65:23: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | if let failure, !(failure is Never) {
64 | Task {
65 | await subscriber?.receive(completion: .failure(failure))
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
66 | await _cancel()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:41:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | }
40 |
41 | nonisolated func start() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:75:12: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
73 | nonisolated func cancel() {
74 | Task {
75 | await self._cancel()
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:73:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | nonisolated func request(_: Subscribers.Demand) {}
72 |
73 | nonisolated func cancel() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | Task {
75 | await self._cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:19:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
17 | task: @escaping @Sendable () async throws -> T
18 | ) async throws -> T {
19 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
20 | if let task = cached as? Task<T, Error> {
21 | return try await task.value
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:58:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
56 | task: @escaping @Sendable () async -> T
57 | ) async -> T {
58 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
59 | if let task = cached as? Task<T, Error> {
60 | // logger("Attempted to access a throwing synchronized task from a non-throwing context.")
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:96:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
94 | @discardableResult
95 | public func waitForThrowingSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async throws -> T? {
96 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
97 | return nil
98 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:123:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
121 | @discardableResult
122 | public func waitForSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async -> T? {
123 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
124 | return nil
125 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:46:33: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | guard let self else { return }
45 | Task {
46 | _ = await self.subscriber?.receive(output)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | }
48 | },
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:44:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
44 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
45 | Task {
46 | _ = await self.subscriber?.receive(output)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:52:29: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | guard let self else { return }
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
53 | await self._cancel()
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:50:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
48 | },
49 | { [weak self] completion in
50 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
51 | Task {
52 | await self.subscriber?.receive(completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:59:14: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
57 | guard let self else { return }
58 | Task {
59 | await self.onCancel(onCancel)
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:57:17: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
55 | },
56 | { [weak self] onCancel in
57 | guard let self else { return }
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | Task {
59 | await self.onCancel(onCancel)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:65:23: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | if let failure, !(failure is Never) {
64 | Task {
65 | await subscriber?.receive(completion: .failure(failure))
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
66 | await _cancel()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:41:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | }
40 |
41 | nonisolated func start() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | let failure = create.events(
43 | { [weak self] output in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:75:12: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
73 | nonisolated func cancel() {
74 | Task {
75 | await self._cancel()
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Publisher+Create.swift:73:21: warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | nonisolated func request(_: Subscribers.Demand) {}
72 |
73 | nonisolated func cancel() {
| `- warning: capture of non-sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | Task {
75 | await self._cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:19:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
17 | task: @escaping @Sendable () async throws -> T
18 | ) async throws -> T {
19 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
20 | if let task = cached as? Task<T, Error> {
21 | return try await task.value
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:58:40: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
56 | task: @escaping @Sendable () async -> T
57 | ) async -> T {
58 | if let cached = await Barriers.shared.tasks[taskIdentifier] {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
59 | if let task = cached as? Task<T, Error> {
60 | // logger("Attempted to access a throwing synchronized task from a non-throwing context.")
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:96:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
94 | @discardableResult
95 | public func waitForThrowingSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async throws -> T? {
96 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
97 | return nil
98 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/WithSynchronizedAccess.swift:123:43: warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
121 | @discardableResult
122 | public func waitForSynchronizedAccess<ID: Hashable, T>(id taskIdentifier: ID, of type: T.Type = T.self) async -> T? {
123 | guard let cached = await Barriers.shared.tasks[taskIdentifier] else {
| `- warning: non-sendable type '[AnyHashable : any AnyTask]' of property 'tasks' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
124 | return nil
125 | }
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
[469/470] Emitting module SwiftAPIClient
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:17:42: warning: 'ArrayEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.ArrayEncodingStrategy' [#DeprecatedDeclaration]
15 | dateEncodingStrategy: JSONEncoder.DateEncodingStrategy = .deferredToDate,
16 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
17 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
| |- warning: 'ArrayEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.ArrayEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.ArrayEncodingStrategy' instead
18 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
19 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:18:43: warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
16 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
17 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
18 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
| |- warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.NestedEncodingStrategy' instead
19 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
20 | ) -> Self {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:19:41: warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
17 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
18 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
19 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
| |- warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.BoolEncodingStrategy' instead
20 | ) -> Self {
21 | MultipartFormDataEncoder(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:47:42: warning: 'ArrayEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.ArrayEncodingStrategy' [#DeprecatedDeclaration]
45 | dateEncodingStrategy: JSONEncoder.DateEncodingStrategy = .deferredToDate,
46 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
47 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
| |- warning: 'ArrayEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.ArrayEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.ArrayEncodingStrategy' instead
48 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
49 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:48:43: warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
46 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
47 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
48 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
| |- warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.NestedEncodingStrategy' instead
49 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
50 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:49:41: warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
47 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
48 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
49 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
| |- warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.BoolEncodingStrategy' instead
50 | ) {
51 | self.boundary = boundary ?? RandomBoundaryGenerator.defaultBoundary
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:17:42: warning: 'ArrayEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.ArrayEncodingStrategy' [#DeprecatedDeclaration]
15 | dateEncodingStrategy: JSONEncoder.DateEncodingStrategy = .deferredToDate,
16 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
17 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
| |- warning: 'ArrayEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.ArrayEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.ArrayEncodingStrategy' instead
18 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
19 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:18:43: warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
16 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
17 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
18 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
| |- warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.NestedEncodingStrategy' instead
19 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
20 | ) -> Self {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:19:41: warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
17 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
18 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
19 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
| |- warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.BoolEncodingStrategy' instead
20 | ) -> Self {
21 | MultipartFormDataEncoder(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:47:42: warning: 'ArrayEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.ArrayEncodingStrategy' [#DeprecatedDeclaration]
45 | dateEncodingStrategy: JSONEncoder.DateEncodingStrategy = .deferredToDate,
46 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
47 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
| |- warning: 'ArrayEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.ArrayEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.ArrayEncodingStrategy' instead
48 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
49 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:48:43: warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
46 | keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .useDefaultKeys,
47 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
48 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
| |- warning: 'NestedEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.NestedEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.NestedEncodingStrategy' instead
49 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
50 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift:49:41: warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
47 | arrayEncodingStrategy: URLQueryEncoder.ArrayEncodingStrategy = .commaSeparator,
48 | nestedEncodingStrategy: URLQueryEncoder.NestedEncodingStrategy = .brackets,
49 | boolEncodingStrategy: URLQueryEncoder.BoolEncodingStrategy = .literal
| |- warning: 'BoolEncodingStrategy' is deprecated: renamed to 'SwiftAPIClient.BoolEncodingStrategy' [#DeprecatedDeclaration]
| `- note: use 'SwiftAPIClient.BoolEncodingStrategy' instead
50 | ) {
51 | self.boundary = boundary ?? RandomBoundaryGenerator.defaultBoundary
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Build complete! (39.64s)
Fetching https://github.com/apple/swift-metrics.git
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/apple/swift-log.git
[1/2206] Fetching swift-metrics
[178/3110] Fetching swift-metrics, swift-http-types
[296/6946] Fetching swift-metrics, swift-http-types, swift-log
[6947/77872] Fetching swift-metrics, swift-http-types, swift-log, swift-syntax
Fetched https://github.com/apple/swift-http-types.git from cache (3.11s)
Fetched https://github.com/apple/swift-metrics.git from cache (3.12s)
Fetched https://github.com/swiftlang/swift-syntax from cache (3.12s)
Fetched https://github.com/apple/swift-log.git from cache (3.12s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.4.0 (3.59s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.0 (0.43s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.41s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (2.63s)
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.7.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.4.0
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.1
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/600.0.1/swiftlang-6.2.0.9.909-MacroSupport-macos_aarch64.zip
Build complete.
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-http-types",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-http-types.git"
},
{
"identity" : "swift-metrics",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-metrics.git"
},
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "509.0.0",
"upper_bound" : "601.0.0-prerelease"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-syntax"
}
],
"manifest_display_name" : "swift-api-client",
"name" : "swift-api-client",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "5.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "SwiftAPIClient",
"targets" : [
"SwiftAPIClient"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftAPIClientMacros",
"targets" : [
"SwiftAPIClientMacros"
],
"type" : {
"macro" : null
}
}
],
"targets" : [
{
"c99name" : "SwiftAPIClientTests",
"module_type" : "SwiftTarget",
"name" : "SwiftAPIClientTests",
"path" : "Tests/SwiftAPIClientTests",
"sources" : [
"CURLTests.swift",
"EncodersTests/MultipartFormDataTests.swift",
"HTTPHeadersEncoderTests.swift",
"Modifiers/AuthModifierTests.swift",
"Modifiers/ErrorDecodingTests.swift",
"Modifiers/HTTPResponseValidatorTests.swift",
"Modifiers/LogLevelModifierTests.swift",
"Modifiers/MockResponsesTests.swift",
"Modifiers/RequestCompressionTests.swift",
"Modifiers/RequestModifiersTests.swift",
"NetworkClientTests.swift",
"TestUtils/Client+Ext.swift",
"TestUtils/TestHTTPClient.swift",
"URLQueryEncoderTests.swift",
"UtilsTests/URLComponentBuilderTests.swift",
"UtilsTests/WithTimeoutTests.swift"
],
"target_dependencies" : [
"SwiftAPIClient"
],
"type" : "test"
},
{
"c99name" : "SwiftAPIClientMacrosTests",
"module_type" : "SwiftTarget",
"name" : "SwiftAPIClientMacrosTests",
"path" : "Tests/SwiftAPIClientMacrosTests",
"product_dependencies" : [
"SwiftSyntaxMacrosTestSupport"
],
"sources" : [
"APIMacroTests.swift",
"CallMacroTests.swift",
"PathMacroTests.swift"
],
"target_dependencies" : [
"SwiftAPIClientMacros"
],
"type" : "test"
},
{
"c99name" : "SwiftAPIClientMacros",
"module_type" : "SwiftTarget",
"name" : "SwiftAPIClientMacros",
"path" : "Sources/SwiftAPIClientMacros",
"product_dependencies" : [
"SwiftSyntaxMacros",
"SwiftCompilerPlugin"
],
"product_memberships" : [
"SwiftAPIClient",
"SwiftAPIClientMacros"
],
"sources" : [
"Collection++.swift",
"MacroError.swift",
"String++.swift",
"SwiftAPIClientMacros.swift"
],
"type" : "macro"
},
{
"c99name" : "SwiftAPIClient",
"module_type" : "SwiftTarget",
"name" : "SwiftAPIClient",
"path" : "Sources/SwiftAPIClient",
"product_dependencies" : [
"Logging",
"Metrics",
"HTTPTypes",
"HTTPTypesFoundation"
],
"product_memberships" : [
"SwiftAPIClient"
],
"sources" : [
"APIClient.swift",
"APIClientCaller.swift",
"APIClientConfigs.swift",
"Clients/HTTPClient.swift",
"Clients/HTTPDownloadClient.swift",
"Clients/HTTPPublisher.swift",
"Clients/HTTPUploadClient.swift",
"Clients/URLSession+Client.swift",
"Extensions/Async++.swift",
"Extensions/String++.swift",
"Extensions/URLComponentBuilder.swift",
"Extensions/URLResponse++.swift",
"Imports.swift",
"Macros.swift",
"Modifiers/AuthModifier.swift",
"Modifiers/BackgroundModifiers.swift",
"Modifiers/CodersModifiers.swift",
"Modifiers/ErrorDecodeModifiers.swift",
"Modifiers/ErrorHandler.swift",
"Modifiers/FileIDLine.swift",
"Modifiers/HTTPClientMiddleware.swift",
"Modifiers/HTTPResponseValidator.swift",
"Modifiers/LoggingModifier.swift",
"Modifiers/MetricsModifier.swift",
"Modifiers/MockResponses.swift",
"Modifiers/RateLimitModifier.swift",
"Modifiers/RedirectModifier.swift",
"Modifiers/RequestCompression.swift",
"Modifiers/RequestModifiers.swift",
"Modifiers/RequestValidator.swift",
"Modifiers/ResponseWrapModifires.swift",
"Modifiers/RetryModifier.swift",
"Modifiers/ThrottleModifier.swift",
"Modifiers/TimeoutModifiers.swift",
"Modifiers/TokenRefresher/TokenCacheService.swift",
"Modifiers/TokenRefresher/TokenRefresher.swift",
"Modifiers/URLSessionModifiers.swift",
"Modifiers/WaitForConnectionModifier.swift",
"RequestBuilder.swift",
"Types/AsyncValue.swift",
"Types/ContentSerializer.swift",
"Types/ContentType.swift",
"Types/Errors.swift",
"Types/HTTPFields.swift",
"Types/HTTPRequestComponents.swift",
"Types/LoggingComponent.swift",
"Types/Mockable.swift",
"Types/RedirectBehaviour.swift",
"Types/Serializer.swift",
"Types/TimeoutError.swift",
"Utils/AnyAsyncSequence.swift",
"Utils/AnyEncodable.swift",
"Utils/Coders/ContentEncoder.swift",
"Utils/Coders/DataDecoder.swift",
"Utils/Coders/EncodingStrategies.swift",
"Utils/Coders/ErrorDecoder.swift",
"Utils/Coders/FormURLEncoder.swift",
"Utils/Coders/HeadersEncoder.swift",
"Utils/Coders/JSONContentEncoders.swift",
"Utils/Coders/MultipartFormData/MultipartFormData.swift",
"Utils/Coders/MultipartFormData/MultipartFormDataEncoder.swift",
"Utils/Coders/ParametersEncoder.swift",
"Utils/Coders/ParametersValue.swift",
"Utils/Coders/QueryEncoder.swift",
"Utils/Coders/URLQuery/HTTPHeadersEncoder.swift",
"Utils/Coders/URLQuery/PlainCodingKey.swift",
"Utils/Coders/URLQuery/Ref.swift",
"Utils/Coders/URLQuery/URLQueryEncoder.swift",
"Utils/ConsoleStyle.swift",
"Utils/Error+String.swift",
"Utils/NoneLogger.swift",
"Utils/Publisher+Create.swift",
"Utils/Publishers+Task.swift",
"Utils/Reachability.swift",
"Utils/Status+Ext.swift",
"Utils/URLSessionDelegateWrapper.swift",
"Utils/UpdateMetrics.swift",
"Utils/WithSynchronizedAccess.swift"
],
"target_dependencies" : [
"SwiftAPIClientMacros"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.