Build Information
Failed to build AtomNetworking, reference master (561794), with Swift 6.1 for macOS (SPM) on 10 Oct 2026 07:46:10 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
27 | ///
28 | /// `@unchecked Sendable` is used as the queue protects state for cross-concurrency safety.
29 | final class RequestableQueueManager: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
30 | // MARK: - Properties
31 |
:
66 | /// - Parameters:
67 | /// - task: The async closure to enqueue (e.g., network operations).
68 | func enqueue(_ task: @escaping @Sendable () async -> Void) {
| `- note: add @available attribute to enclosing instance method
69 | queue.sync {
70 | let wasEmpty = pendingTasks.isEmpty
:
75 | isProcessing = true
76 |
77 | Task.detached { [weak self] in
| |- error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | await self?.processQueue()
79 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Managers/RequestableQueueManager.swift:155:17: error: 'Task' is only available in macOS 10.15 or newer
89 | // MARK: - Private Properties and Methods
90 |
91 | extension RequestableQueueManager {
| `- note: add @available attribute to enclosing extension
92 | /// Processes the queue asynchronously, draining tasks in FIFO order.
93 | ///
:
148 | ///
149 | /// Called periodically by the timer to recover from potential stalls (e.g., if a previous processor Task failed to reset the flag).
150 | private func checkAndDrainIfNeeded() {
| `- note: add @available attribute to enclosing instance method
151 | queue.sync {
152 | if !pendingTasks.isEmpty, !isProcessing {
153 | isProcessing = true
154 |
155 | Task.detached { [weak self] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
156 | await self?.processQueue()
157 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Managers/RequestableQueueManager.swift:155:22: error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
89 | // MARK: - Private Properties and Methods
90 |
91 | extension RequestableQueueManager {
| `- note: add @available attribute to enclosing extension
92 | /// Processes the queue asynchronously, draining tasks in FIFO order.
93 | ///
:
148 | ///
149 | /// Called periodically by the timer to recover from potential stalls (e.g., if a previous processor Task failed to reset the flag).
150 | private func checkAndDrainIfNeeded() {
| `- note: add @available attribute to enclosing instance method
151 | queue.sync {
152 | if !pendingTasks.isEmpty, !isProcessing {
153 | isProcessing = true
154 |
155 | Task.detached { [weak self] in
| |- error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
156 | await self?.processQueue()
157 | }
[77/84] Compiling AtomNetworking Service.swift
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:116:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
113 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
114 | /// - completion: Called with the result.
115 | public func resume<T>(expecting type: T.Type, decoder: JSONDecoder? = nil, completion: @Sendable @escaping (Result<T, AtomError>) -> Void) where T: Model {
| `- note: add @available attribute to enclosing instance method
116 | Task { await serviceActor.resume(for: requestable, expecting: type, decoder: decoder, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:116:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
113 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
114 | /// - completion: Called with the result.
115 | public func resume<T>(expecting type: T.Type, decoder: JSONDecoder? = nil, completion: @Sendable @escaping (Result<T, AtomError>) -> Void) where T: Model {
| `- note: add @available attribute to enclosing instance method
116 | Task { await serviceActor.resume(for: requestable, expecting: type, decoder: decoder, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:133:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
126 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
127 | /// - completion: Called with the result.
128 | public func resume<T>(
| `- note: add @available attribute to enclosing instance method
129 | decoding type: T.Type,
130 | decoder: JSONDecoder? = nil,
131 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
132 | ) where T: Model {
133 | Task { await serviceActor.resume(for: requestable, decoding: type, decoder: decoder, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:133:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
126 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
127 | /// - completion: Called with the result.
128 | public func resume<T>(
| `- note: add @available attribute to enclosing instance method
129 | decoding type: T.Type,
130 | decoder: JSONDecoder? = nil,
131 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
132 | ) where T: Model {
133 | Task { await serviceActor.resume(for: requestable, decoding: type, decoder: decoder, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:141:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
138 | /// - Parameters:
139 | /// - completion: Called with the result.
140 | public func resume(_ completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
141 | Task { await serviceActor.resume(for: requestable, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:141:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
138 | /// - Parameters:
139 | /// - completion: Called with the result.
140 | public func resume(_ completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
141 | Task { await serviceActor.resume(for: requestable, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:38:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
30 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
31 | /// - completion: A `@Sendable` escaping closure called with the result.
32 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
33 | for requestable: any Requestable,
34 | expecting type: T.Type,
:
36 | completion: @Sendable @escaping (Result<T, AtomError>) -> Void
37 | ) {
38 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | do {
40 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:38:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
30 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
31 | /// - completion: A `@Sendable` escaping closure called with the result.
32 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
33 | for requestable: any Requestable,
34 | expecting type: T.Type,
:
36 | completion: @Sendable @escaping (Result<T, AtomError>) -> Void
37 | ) {
38 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | do {
40 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:74:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
66 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
67 | /// - completion: A `@Sendable` escaping closure called with the result.
68 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
69 | for requestable: any Requestable,
70 | decoding type: T.Type,
:
72 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
73 | ) {
74 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | do {
76 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:74:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
66 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
67 | /// - completion: A `@Sendable` escaping closure called with the result.
68 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
69 | for requestable: any Requestable,
70 | decoding type: T.Type,
:
72 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
73 | ) {
74 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | do {
76 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:101:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
98 | /// - requestable: The request to execute.
99 | /// - completion: A `@Sendable` escaping closure called with the result.
100 | func resume(for requestable: any Requestable, completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
101 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | do {
103 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:101:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
98 | /// - requestable: The request to execute.
99 | /// - completion: A `@Sendable` escaping closure called with the result.
100 | func resume(for requestable: any Requestable, completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
101 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | do {
103 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Deduplication.swift:52:20: error: 'Task' is only available in macOS 10.15 or newer
19 | // MARK: - De-duplication
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Executes a request, coalescing identical concurrent GETs into a single transport call.
23 | ///
:
36 | /// - Returns: The raw `AtomResponse`.
37 | /// - Throws: `AtomError` on failure, propagated to every caller awaiting the same in-flight request.
38 | func deduplicatedResponse(for requestable: any Requestable) async throws(AtomError) -> AtomResponse {
| `- note: add @available attribute to enclosing instance method
39 | // Only GETs are combined. A request may also opt out explicitly via `allowsDeduplication`.
40 | guard requestable.method == .get, requestable.allowsDeduplication else {
:
50 |
51 | // Create, store, and ensure removal once we finish.
52 | let task = Task<AtomResponse, Error> {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | try await self.transportResponse(for: requestable)
54 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Deduplication.swift:52:44: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | // MARK: - De-duplication
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Executes a request, coalescing identical concurrent GETs into a single transport call.
23 | ///
:
36 | /// - Returns: The raw `AtomResponse`.
37 | /// - Throws: `AtomError` on failure, propagated to every caller awaiting the same in-flight request.
38 | func deduplicatedResponse(for requestable: any Requestable) async throws(AtomError) -> AtomResponse {
| `- note: add @available attribute to enclosing instance method
39 | // Only GETs are combined. A request may also opt out explicitly via `allowsDeduplication`.
40 | guard requestable.method == .get, requestable.allowsDeduplication else {
:
50 |
51 | // Create, store, and ensure removal once we finish.
52 | let task = Task<AtomResponse, Error> {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | try await self.transportResponse(for: requestable)
54 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Extensions.swift:55:35: error: 'Task' is only available in macOS 10.15 or newer
19 | // MARK: - Helper Properties and Methods
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Applies authorization header to a `Requestable` instance.
23 | ///
:
26 | ///
27 | /// - Returns: A `Requestable` with authorization header applied (if needed) or pass-through requestable.
28 | func applyAuthorizationHeader(to requestable: Requestable) async throws(AtomError) -> any Requestable {
| `- note: add @available attribute to enclosing instance method
29 | // Get the service configuration's authentication method.
30 | let method = serviceConfiguration.authenticationMethod
:
53 | if refreshTask == nil {
54 | // Create a new Task for the background refresh operation.
55 | refreshTask = Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | // Ensure the task reference is reset after completion or failure.
57 | defer { refreshTask = nil }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Extensions.swift:55:35: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | // MARK: - Helper Properties and Methods
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Applies authorization header to a `Requestable` instance.
23 | ///
:
26 | ///
27 | /// - Returns: A `Requestable` with authorization header applied (if needed) or pass-through requestable.
28 | func applyAuthorizationHeader(to requestable: Requestable) async throws(AtomError) -> any Requestable {
| `- note: add @available attribute to enclosing instance method
29 | // Get the service configuration's authentication method.
30 | let method = serviceConfiguration.authenticationMethod
:
53 | if refreshTask == nil {
54 | // Create a new Task for the background refresh operation.
55 | refreshTask = Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | // Ensure the task reference is reset after completion or failure.
57 | defer { refreshTask = nil }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:30:27: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
24 |
25 | /// Wraps a `CheckedContinuation` so it can be safely passed across concurrency boundaries.
26 | final class ContinuationBox<T>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
27 | // MARK: - Properties
28 |
29 | /// The underlying continuation to resume.
30 | let continuation: CheckedContinuation<T, Error>
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
31 |
32 | // MARK: - Lifecycle
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:38:30: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
24 |
25 | /// Wraps a `CheckedContinuation` so it can be safely passed across concurrency boundaries.
26 | final class ContinuationBox<T>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
27 | // MARK: - Properties
28 |
:
36 | /// - Parameters:
37 | /// - continuation: The continuation to wrap.
38 | init(_ continuation: CheckedContinuation<T, Error>) {
| | `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | self.continuation = continuation
40 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:49:22: error: 'Task' is only available in macOS 10.15 or newer
20 |
21 | /// Internal actor responsible for executing requests and coordinating token refresh.
22 | actor ServiceActor: Sendable {
| `- note: add @available attribute to enclosing actor
23 | // MARK: - Nested Types
24 |
:
47 |
48 | /// Tracks the currently running refresh task, if one exists.
49 | var refreshTask: Task<TokenCredential, Error>?
| `- error: 'Task' is only available in macOS 10.15 or newer
50 |
51 | /// Tracks in-flight GET requests so identical concurrent calls collapse into a single call.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:52:40: error: 'Task' is only available in macOS 10.15 or newer
20 |
21 | /// Internal actor responsible for executing requests and coordinating token refresh.
22 | actor ServiceActor: Sendable {
| `- note: add @available attribute to enclosing actor
23 | // MARK: - Nested Types
24 |
:
50 |
51 | /// Tracks in-flight GET requests so identical concurrent calls collapse into a single call.
52 | var inFlightRequests: [RequestKey: Task<AtomResponse, Error>] = .init()
| `- error: 'Task' is only available in macOS 10.15 or newer
53 |
54 | /// Queue manager used to serialize request execution when a refresh is required.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:123:21: error: 'Task' is only available in macOS 10.15 or newer
84 | // MARK: - Functions
85 |
86 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
87 | /// Applies authorization to the request and executes the provided operation.
88 | ///
:
113 | /// - Returns: The result of the executed request.
114 | /// - Throws: `AtomError` if execution fails.
115 | func performRequest<T: Sendable>(
| `- note: add @available attribute to enclosing instance method
116 | for requestable: any Requestable,
117 | completion: @escaping @Sendable (any Requestable) async throws(AtomError) -> T
:
121 | let box: ContinuationBox = .init(continuation)
122 | requestableQueueManager.enqueue { [requestable, completion, box] in
123 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | await self.performQueuedRequest(for: requestable, completion: completion, box: box)
125 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:123:21: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
84 | // MARK: - Functions
85 |
86 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
87 | /// Applies authorization to the request and executes the provided operation.
88 | ///
:
113 | /// - Returns: The result of the executed request.
114 | /// - Throws: `AtomError` if execution fails.
115 | func performRequest<T: Sendable>(
| `- note: add @available attribute to enclosing instance method
116 | for requestable: any Requestable,
117 | completion: @escaping @Sendable (any Requestable) async throws(AtomError) -> T
:
121 | let box: ContinuationBox = .init(continuation)
122 | requestableQueueManager.enqueue { [requestable, completion, box] in
123 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | await self.performQueuedRequest(for: requestable, completion: completion, box: box)
125 | }
[78/84] Compiling AtomNetworking ServiceActor+Async.swift
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:116:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
113 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
114 | /// - completion: Called with the result.
115 | public func resume<T>(expecting type: T.Type, decoder: JSONDecoder? = nil, completion: @Sendable @escaping (Result<T, AtomError>) -> Void) where T: Model {
| `- note: add @available attribute to enclosing instance method
116 | Task { await serviceActor.resume(for: requestable, expecting: type, decoder: decoder, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:116:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
113 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
114 | /// - completion: Called with the result.
115 | public func resume<T>(expecting type: T.Type, decoder: JSONDecoder? = nil, completion: @Sendable @escaping (Result<T, AtomError>) -> Void) where T: Model {
| `- note: add @available attribute to enclosing instance method
116 | Task { await serviceActor.resume(for: requestable, expecting: type, decoder: decoder, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:133:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
126 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
127 | /// - completion: Called with the result.
128 | public func resume<T>(
| `- note: add @available attribute to enclosing instance method
129 | decoding type: T.Type,
130 | decoder: JSONDecoder? = nil,
131 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
132 | ) where T: Model {
133 | Task { await serviceActor.resume(for: requestable, decoding: type, decoder: decoder, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:133:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
126 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
127 | /// - completion: Called with the result.
128 | public func resume<T>(
| `- note: add @available attribute to enclosing instance method
129 | decoding type: T.Type,
130 | decoder: JSONDecoder? = nil,
131 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
132 | ) where T: Model {
133 | Task { await serviceActor.resume(for: requestable, decoding: type, decoder: decoder, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:141:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
138 | /// - Parameters:
139 | /// - completion: Called with the result.
140 | public func resume(_ completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
141 | Task { await serviceActor.resume(for: requestable, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:141:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
138 | /// - Parameters:
139 | /// - completion: Called with the result.
140 | public func resume(_ completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
141 | Task { await serviceActor.resume(for: requestable, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:38:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
30 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
31 | /// - completion: A `@Sendable` escaping closure called with the result.
32 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
33 | for requestable: any Requestable,
34 | expecting type: T.Type,
:
36 | completion: @Sendable @escaping (Result<T, AtomError>) -> Void
37 | ) {
38 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | do {
40 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:38:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
30 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
31 | /// - completion: A `@Sendable` escaping closure called with the result.
32 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
33 | for requestable: any Requestable,
34 | expecting type: T.Type,
:
36 | completion: @Sendable @escaping (Result<T, AtomError>) -> Void
37 | ) {
38 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | do {
40 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:74:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
66 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
67 | /// - completion: A `@Sendable` escaping closure called with the result.
68 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
69 | for requestable: any Requestable,
70 | decoding type: T.Type,
:
72 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
73 | ) {
74 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | do {
76 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:74:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
66 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
67 | /// - completion: A `@Sendable` escaping closure called with the result.
68 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
69 | for requestable: any Requestable,
70 | decoding type: T.Type,
:
72 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
73 | ) {
74 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | do {
76 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:101:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
98 | /// - requestable: The request to execute.
99 | /// - completion: A `@Sendable` escaping closure called with the result.
100 | func resume(for requestable: any Requestable, completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
101 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | do {
103 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:101:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
98 | /// - requestable: The request to execute.
99 | /// - completion: A `@Sendable` escaping closure called with the result.
100 | func resume(for requestable: any Requestable, completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
101 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | do {
103 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Deduplication.swift:52:20: error: 'Task' is only available in macOS 10.15 or newer
19 | // MARK: - De-duplication
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Executes a request, coalescing identical concurrent GETs into a single transport call.
23 | ///
:
36 | /// - Returns: The raw `AtomResponse`.
37 | /// - Throws: `AtomError` on failure, propagated to every caller awaiting the same in-flight request.
38 | func deduplicatedResponse(for requestable: any Requestable) async throws(AtomError) -> AtomResponse {
| `- note: add @available attribute to enclosing instance method
39 | // Only GETs are combined. A request may also opt out explicitly via `allowsDeduplication`.
40 | guard requestable.method == .get, requestable.allowsDeduplication else {
:
50 |
51 | // Create, store, and ensure removal once we finish.
52 | let task = Task<AtomResponse, Error> {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | try await self.transportResponse(for: requestable)
54 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Deduplication.swift:52:44: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | // MARK: - De-duplication
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Executes a request, coalescing identical concurrent GETs into a single transport call.
23 | ///
:
36 | /// - Returns: The raw `AtomResponse`.
37 | /// - Throws: `AtomError` on failure, propagated to every caller awaiting the same in-flight request.
38 | func deduplicatedResponse(for requestable: any Requestable) async throws(AtomError) -> AtomResponse {
| `- note: add @available attribute to enclosing instance method
39 | // Only GETs are combined. A request may also opt out explicitly via `allowsDeduplication`.
40 | guard requestable.method == .get, requestable.allowsDeduplication else {
:
50 |
51 | // Create, store, and ensure removal once we finish.
52 | let task = Task<AtomResponse, Error> {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | try await self.transportResponse(for: requestable)
54 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Extensions.swift:55:35: error: 'Task' is only available in macOS 10.15 or newer
19 | // MARK: - Helper Properties and Methods
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Applies authorization header to a `Requestable` instance.
23 | ///
:
26 | ///
27 | /// - Returns: A `Requestable` with authorization header applied (if needed) or pass-through requestable.
28 | func applyAuthorizationHeader(to requestable: Requestable) async throws(AtomError) -> any Requestable {
| `- note: add @available attribute to enclosing instance method
29 | // Get the service configuration's authentication method.
30 | let method = serviceConfiguration.authenticationMethod
:
53 | if refreshTask == nil {
54 | // Create a new Task for the background refresh operation.
55 | refreshTask = Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | // Ensure the task reference is reset after completion or failure.
57 | defer { refreshTask = nil }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Extensions.swift:55:35: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | // MARK: - Helper Properties and Methods
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Applies authorization header to a `Requestable` instance.
23 | ///
:
26 | ///
27 | /// - Returns: A `Requestable` with authorization header applied (if needed) or pass-through requestable.
28 | func applyAuthorizationHeader(to requestable: Requestable) async throws(AtomError) -> any Requestable {
| `- note: add @available attribute to enclosing instance method
29 | // Get the service configuration's authentication method.
30 | let method = serviceConfiguration.authenticationMethod
:
53 | if refreshTask == nil {
54 | // Create a new Task for the background refresh operation.
55 | refreshTask = Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | // Ensure the task reference is reset after completion or failure.
57 | defer { refreshTask = nil }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:30:27: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
24 |
25 | /// Wraps a `CheckedContinuation` so it can be safely passed across concurrency boundaries.
26 | final class ContinuationBox<T>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
27 | // MARK: - Properties
28 |
29 | /// The underlying continuation to resume.
30 | let continuation: CheckedContinuation<T, Error>
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
31 |
32 | // MARK: - Lifecycle
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:38:30: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
24 |
25 | /// Wraps a `CheckedContinuation` so it can be safely passed across concurrency boundaries.
26 | final class ContinuationBox<T>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
27 | // MARK: - Properties
28 |
:
36 | /// - Parameters:
37 | /// - continuation: The continuation to wrap.
38 | init(_ continuation: CheckedContinuation<T, Error>) {
| | `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | self.continuation = continuation
40 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:49:22: error: 'Task' is only available in macOS 10.15 or newer
20 |
21 | /// Internal actor responsible for executing requests and coordinating token refresh.
22 | actor ServiceActor: Sendable {
| `- note: add @available attribute to enclosing actor
23 | // MARK: - Nested Types
24 |
:
47 |
48 | /// Tracks the currently running refresh task, if one exists.
49 | var refreshTask: Task<TokenCredential, Error>?
| `- error: 'Task' is only available in macOS 10.15 or newer
50 |
51 | /// Tracks in-flight GET requests so identical concurrent calls collapse into a single call.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:52:40: error: 'Task' is only available in macOS 10.15 or newer
20 |
21 | /// Internal actor responsible for executing requests and coordinating token refresh.
22 | actor ServiceActor: Sendable {
| `- note: add @available attribute to enclosing actor
23 | // MARK: - Nested Types
24 |
:
50 |
51 | /// Tracks in-flight GET requests so identical concurrent calls collapse into a single call.
52 | var inFlightRequests: [RequestKey: Task<AtomResponse, Error>] = .init()
| `- error: 'Task' is only available in macOS 10.15 or newer
53 |
54 | /// Queue manager used to serialize request execution when a refresh is required.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:123:21: error: 'Task' is only available in macOS 10.15 or newer
84 | // MARK: - Functions
85 |
86 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
87 | /// Applies authorization to the request and executes the provided operation.
88 | ///
:
113 | /// - Returns: The result of the executed request.
114 | /// - Throws: `AtomError` if execution fails.
115 | func performRequest<T: Sendable>(
| `- note: add @available attribute to enclosing instance method
116 | for requestable: any Requestable,
117 | completion: @escaping @Sendable (any Requestable) async throws(AtomError) -> T
:
121 | let box: ContinuationBox = .init(continuation)
122 | requestableQueueManager.enqueue { [requestable, completion, box] in
123 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | await self.performQueuedRequest(for: requestable, completion: completion, box: box)
125 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:123:21: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
84 | // MARK: - Functions
85 |
86 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
87 | /// Applies authorization to the request and executes the provided operation.
88 | ///
:
113 | /// - Returns: The result of the executed request.
114 | /// - Throws: `AtomError` if execution fails.
115 | func performRequest<T: Sendable>(
| `- note: add @available attribute to enclosing instance method
116 | for requestable: any Requestable,
117 | completion: @escaping @Sendable (any Requestable) async throws(AtomError) -> T
:
121 | let box: ContinuationBox = .init(continuation)
122 | requestableQueueManager.enqueue { [requestable, completion, box] in
123 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | await self.performQueuedRequest(for: requestable, completion: completion, box: box)
125 | }
[79/84] Compiling AtomNetworking ServiceActor+Completions.swift
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:116:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
113 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
114 | /// - completion: Called with the result.
115 | public func resume<T>(expecting type: T.Type, decoder: JSONDecoder? = nil, completion: @Sendable @escaping (Result<T, AtomError>) -> Void) where T: Model {
| `- note: add @available attribute to enclosing instance method
116 | Task { await serviceActor.resume(for: requestable, expecting: type, decoder: decoder, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:116:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
113 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
114 | /// - completion: Called with the result.
115 | public func resume<T>(expecting type: T.Type, decoder: JSONDecoder? = nil, completion: @Sendable @escaping (Result<T, AtomError>) -> Void) where T: Model {
| `- note: add @available attribute to enclosing instance method
116 | Task { await serviceActor.resume(for: requestable, expecting: type, decoder: decoder, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:133:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
126 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
127 | /// - completion: Called with the result.
128 | public func resume<T>(
| `- note: add @available attribute to enclosing instance method
129 | decoding type: T.Type,
130 | decoder: JSONDecoder? = nil,
131 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
132 | ) where T: Model {
133 | Task { await serviceActor.resume(for: requestable, decoding: type, decoder: decoder, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:133:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
126 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
127 | /// - completion: Called with the result.
128 | public func resume<T>(
| `- note: add @available attribute to enclosing instance method
129 | decoding type: T.Type,
130 | decoder: JSONDecoder? = nil,
131 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
132 | ) where T: Model {
133 | Task { await serviceActor.resume(for: requestable, decoding: type, decoder: decoder, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:141:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
138 | /// - Parameters:
139 | /// - completion: Called with the result.
140 | public func resume(_ completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
141 | Task { await serviceActor.resume(for: requestable, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:141:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
138 | /// - Parameters:
139 | /// - completion: Called with the result.
140 | public func resume(_ completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
141 | Task { await serviceActor.resume(for: requestable, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:38:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
30 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
31 | /// - completion: A `@Sendable` escaping closure called with the result.
32 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
33 | for requestable: any Requestable,
34 | expecting type: T.Type,
:
36 | completion: @Sendable @escaping (Result<T, AtomError>) -> Void
37 | ) {
38 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | do {
40 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:38:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
30 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
31 | /// - completion: A `@Sendable` escaping closure called with the result.
32 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
33 | for requestable: any Requestable,
34 | expecting type: T.Type,
:
36 | completion: @Sendable @escaping (Result<T, AtomError>) -> Void
37 | ) {
38 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | do {
40 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:74:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
66 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
67 | /// - completion: A `@Sendable` escaping closure called with the result.
68 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
69 | for requestable: any Requestable,
70 | decoding type: T.Type,
:
72 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
73 | ) {
74 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | do {
76 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:74:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
66 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
67 | /// - completion: A `@Sendable` escaping closure called with the result.
68 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
69 | for requestable: any Requestable,
70 | decoding type: T.Type,
:
72 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
73 | ) {
74 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | do {
76 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:101:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
98 | /// - requestable: The request to execute.
99 | /// - completion: A `@Sendable` escaping closure called with the result.
100 | func resume(for requestable: any Requestable, completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
101 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | do {
103 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:101:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
98 | /// - requestable: The request to execute.
99 | /// - completion: A `@Sendable` escaping closure called with the result.
100 | func resume(for requestable: any Requestable, completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
101 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | do {
103 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Deduplication.swift:52:20: error: 'Task' is only available in macOS 10.15 or newer
19 | // MARK: - De-duplication
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Executes a request, coalescing identical concurrent GETs into a single transport call.
23 | ///
:
36 | /// - Returns: The raw `AtomResponse`.
37 | /// - Throws: `AtomError` on failure, propagated to every caller awaiting the same in-flight request.
38 | func deduplicatedResponse(for requestable: any Requestable) async throws(AtomError) -> AtomResponse {
| `- note: add @available attribute to enclosing instance method
39 | // Only GETs are combined. A request may also opt out explicitly via `allowsDeduplication`.
40 | guard requestable.method == .get, requestable.allowsDeduplication else {
:
50 |
51 | // Create, store, and ensure removal once we finish.
52 | let task = Task<AtomResponse, Error> {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | try await self.transportResponse(for: requestable)
54 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Deduplication.swift:52:44: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | // MARK: - De-duplication
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Executes a request, coalescing identical concurrent GETs into a single transport call.
23 | ///
:
36 | /// - Returns: The raw `AtomResponse`.
37 | /// - Throws: `AtomError` on failure, propagated to every caller awaiting the same in-flight request.
38 | func deduplicatedResponse(for requestable: any Requestable) async throws(AtomError) -> AtomResponse {
| `- note: add @available attribute to enclosing instance method
39 | // Only GETs are combined. A request may also opt out explicitly via `allowsDeduplication`.
40 | guard requestable.method == .get, requestable.allowsDeduplication else {
:
50 |
51 | // Create, store, and ensure removal once we finish.
52 | let task = Task<AtomResponse, Error> {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | try await self.transportResponse(for: requestable)
54 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Extensions.swift:55:35: error: 'Task' is only available in macOS 10.15 or newer
19 | // MARK: - Helper Properties and Methods
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Applies authorization header to a `Requestable` instance.
23 | ///
:
26 | ///
27 | /// - Returns: A `Requestable` with authorization header applied (if needed) or pass-through requestable.
28 | func applyAuthorizationHeader(to requestable: Requestable) async throws(AtomError) -> any Requestable {
| `- note: add @available attribute to enclosing instance method
29 | // Get the service configuration's authentication method.
30 | let method = serviceConfiguration.authenticationMethod
:
53 | if refreshTask == nil {
54 | // Create a new Task for the background refresh operation.
55 | refreshTask = Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | // Ensure the task reference is reset after completion or failure.
57 | defer { refreshTask = nil }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Extensions.swift:55:35: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | // MARK: - Helper Properties and Methods
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Applies authorization header to a `Requestable` instance.
23 | ///
:
26 | ///
27 | /// - Returns: A `Requestable` with authorization header applied (if needed) or pass-through requestable.
28 | func applyAuthorizationHeader(to requestable: Requestable) async throws(AtomError) -> any Requestable {
| `- note: add @available attribute to enclosing instance method
29 | // Get the service configuration's authentication method.
30 | let method = serviceConfiguration.authenticationMethod
:
53 | if refreshTask == nil {
54 | // Create a new Task for the background refresh operation.
55 | refreshTask = Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | // Ensure the task reference is reset after completion or failure.
57 | defer { refreshTask = nil }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:30:27: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
24 |
25 | /// Wraps a `CheckedContinuation` so it can be safely passed across concurrency boundaries.
26 | final class ContinuationBox<T>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
27 | // MARK: - Properties
28 |
29 | /// The underlying continuation to resume.
30 | let continuation: CheckedContinuation<T, Error>
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
31 |
32 | // MARK: - Lifecycle
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:38:30: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
24 |
25 | /// Wraps a `CheckedContinuation` so it can be safely passed across concurrency boundaries.
26 | final class ContinuationBox<T>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
27 | // MARK: - Properties
28 |
:
36 | /// - Parameters:
37 | /// - continuation: The continuation to wrap.
38 | init(_ continuation: CheckedContinuation<T, Error>) {
| | `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | self.continuation = continuation
40 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:49:22: error: 'Task' is only available in macOS 10.15 or newer
20 |
21 | /// Internal actor responsible for executing requests and coordinating token refresh.
22 | actor ServiceActor: Sendable {
| `- note: add @available attribute to enclosing actor
23 | // MARK: - Nested Types
24 |
:
47 |
48 | /// Tracks the currently running refresh task, if one exists.
49 | var refreshTask: Task<TokenCredential, Error>?
| `- error: 'Task' is only available in macOS 10.15 or newer
50 |
51 | /// Tracks in-flight GET requests so identical concurrent calls collapse into a single call.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:52:40: error: 'Task' is only available in macOS 10.15 or newer
20 |
21 | /// Internal actor responsible for executing requests and coordinating token refresh.
22 | actor ServiceActor: Sendable {
| `- note: add @available attribute to enclosing actor
23 | // MARK: - Nested Types
24 |
:
50 |
51 | /// Tracks in-flight GET requests so identical concurrent calls collapse into a single call.
52 | var inFlightRequests: [RequestKey: Task<AtomResponse, Error>] = .init()
| `- error: 'Task' is only available in macOS 10.15 or newer
53 |
54 | /// Queue manager used to serialize request execution when a refresh is required.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:123:21: error: 'Task' is only available in macOS 10.15 or newer
84 | // MARK: - Functions
85 |
86 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
87 | /// Applies authorization to the request and executes the provided operation.
88 | ///
:
113 | /// - Returns: The result of the executed request.
114 | /// - Throws: `AtomError` if execution fails.
115 | func performRequest<T: Sendable>(
| `- note: add @available attribute to enclosing instance method
116 | for requestable: any Requestable,
117 | completion: @escaping @Sendable (any Requestable) async throws(AtomError) -> T
:
121 | let box: ContinuationBox = .init(continuation)
122 | requestableQueueManager.enqueue { [requestable, completion, box] in
123 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | await self.performQueuedRequest(for: requestable, completion: completion, box: box)
125 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:123:21: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
84 | // MARK: - Functions
85 |
86 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
87 | /// Applies authorization to the request and executes the provided operation.
88 | ///
:
113 | /// - Returns: The result of the executed request.
114 | /// - Throws: `AtomError` if execution fails.
115 | func performRequest<T: Sendable>(
| `- note: add @available attribute to enclosing instance method
116 | for requestable: any Requestable,
117 | completion: @escaping @Sendable (any Requestable) async throws(AtomError) -> T
:
121 | let box: ContinuationBox = .init(continuation)
122 | requestableQueueManager.enqueue { [requestable, completion, box] in
123 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | await self.performQueuedRequest(for: requestable, completion: completion, box: box)
125 | }
[80/84] Compiling AtomNetworking ServiceActor+Deduplication.swift
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:116:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
113 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
114 | /// - completion: Called with the result.
115 | public func resume<T>(expecting type: T.Type, decoder: JSONDecoder? = nil, completion: @Sendable @escaping (Result<T, AtomError>) -> Void) where T: Model {
| `- note: add @available attribute to enclosing instance method
116 | Task { await serviceActor.resume(for: requestable, expecting: type, decoder: decoder, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:116:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
113 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
114 | /// - completion: Called with the result.
115 | public func resume<T>(expecting type: T.Type, decoder: JSONDecoder? = nil, completion: @Sendable @escaping (Result<T, AtomError>) -> Void) where T: Model {
| `- note: add @available attribute to enclosing instance method
116 | Task { await serviceActor.resume(for: requestable, expecting: type, decoder: decoder, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:133:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
126 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
127 | /// - completion: Called with the result.
128 | public func resume<T>(
| `- note: add @available attribute to enclosing instance method
129 | decoding type: T.Type,
130 | decoder: JSONDecoder? = nil,
131 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
132 | ) where T: Model {
133 | Task { await serviceActor.resume(for: requestable, decoding: type, decoder: decoder, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:133:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
126 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
127 | /// - completion: Called with the result.
128 | public func resume<T>(
| `- note: add @available attribute to enclosing instance method
129 | decoding type: T.Type,
130 | decoder: JSONDecoder? = nil,
131 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
132 | ) where T: Model {
133 | Task { await serviceActor.resume(for: requestable, decoding: type, decoder: decoder, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:141:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
138 | /// - Parameters:
139 | /// - completion: Called with the result.
140 | public func resume(_ completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
141 | Task { await serviceActor.resume(for: requestable, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:141:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
138 | /// - Parameters:
139 | /// - completion: Called with the result.
140 | public func resume(_ completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
141 | Task { await serviceActor.resume(for: requestable, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:38:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
30 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
31 | /// - completion: A `@Sendable` escaping closure called with the result.
32 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
33 | for requestable: any Requestable,
34 | expecting type: T.Type,
:
36 | completion: @Sendable @escaping (Result<T, AtomError>) -> Void
37 | ) {
38 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | do {
40 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:38:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
30 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
31 | /// - completion: A `@Sendable` escaping closure called with the result.
32 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
33 | for requestable: any Requestable,
34 | expecting type: T.Type,
:
36 | completion: @Sendable @escaping (Result<T, AtomError>) -> Void
37 | ) {
38 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | do {
40 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:74:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
66 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
67 | /// - completion: A `@Sendable` escaping closure called with the result.
68 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
69 | for requestable: any Requestable,
70 | decoding type: T.Type,
:
72 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
73 | ) {
74 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | do {
76 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:74:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
66 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
67 | /// - completion: A `@Sendable` escaping closure called with the result.
68 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
69 | for requestable: any Requestable,
70 | decoding type: T.Type,
:
72 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
73 | ) {
74 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | do {
76 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:101:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
98 | /// - requestable: The request to execute.
99 | /// - completion: A `@Sendable` escaping closure called with the result.
100 | func resume(for requestable: any Requestable, completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
101 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | do {
103 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:101:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
98 | /// - requestable: The request to execute.
99 | /// - completion: A `@Sendable` escaping closure called with the result.
100 | func resume(for requestable: any Requestable, completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
101 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | do {
103 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Deduplication.swift:52:20: error: 'Task' is only available in macOS 10.15 or newer
19 | // MARK: - De-duplication
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Executes a request, coalescing identical concurrent GETs into a single transport call.
23 | ///
:
36 | /// - Returns: The raw `AtomResponse`.
37 | /// - Throws: `AtomError` on failure, propagated to every caller awaiting the same in-flight request.
38 | func deduplicatedResponse(for requestable: any Requestable) async throws(AtomError) -> AtomResponse {
| `- note: add @available attribute to enclosing instance method
39 | // Only GETs are combined. A request may also opt out explicitly via `allowsDeduplication`.
40 | guard requestable.method == .get, requestable.allowsDeduplication else {
:
50 |
51 | // Create, store, and ensure removal once we finish.
52 | let task = Task<AtomResponse, Error> {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | try await self.transportResponse(for: requestable)
54 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Deduplication.swift:52:44: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | // MARK: - De-duplication
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Executes a request, coalescing identical concurrent GETs into a single transport call.
23 | ///
:
36 | /// - Returns: The raw `AtomResponse`.
37 | /// - Throws: `AtomError` on failure, propagated to every caller awaiting the same in-flight request.
38 | func deduplicatedResponse(for requestable: any Requestable) async throws(AtomError) -> AtomResponse {
| `- note: add @available attribute to enclosing instance method
39 | // Only GETs are combined. A request may also opt out explicitly via `allowsDeduplication`.
40 | guard requestable.method == .get, requestable.allowsDeduplication else {
:
50 |
51 | // Create, store, and ensure removal once we finish.
52 | let task = Task<AtomResponse, Error> {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | try await self.transportResponse(for: requestable)
54 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Extensions.swift:55:35: error: 'Task' is only available in macOS 10.15 or newer
19 | // MARK: - Helper Properties and Methods
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Applies authorization header to a `Requestable` instance.
23 | ///
:
26 | ///
27 | /// - Returns: A `Requestable` with authorization header applied (if needed) or pass-through requestable.
28 | func applyAuthorizationHeader(to requestable: Requestable) async throws(AtomError) -> any Requestable {
| `- note: add @available attribute to enclosing instance method
29 | // Get the service configuration's authentication method.
30 | let method = serviceConfiguration.authenticationMethod
:
53 | if refreshTask == nil {
54 | // Create a new Task for the background refresh operation.
55 | refreshTask = Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | // Ensure the task reference is reset after completion or failure.
57 | defer { refreshTask = nil }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Extensions.swift:55:35: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | // MARK: - Helper Properties and Methods
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Applies authorization header to a `Requestable` instance.
23 | ///
:
26 | ///
27 | /// - Returns: A `Requestable` with authorization header applied (if needed) or pass-through requestable.
28 | func applyAuthorizationHeader(to requestable: Requestable) async throws(AtomError) -> any Requestable {
| `- note: add @available attribute to enclosing instance method
29 | // Get the service configuration's authentication method.
30 | let method = serviceConfiguration.authenticationMethod
:
53 | if refreshTask == nil {
54 | // Create a new Task for the background refresh operation.
55 | refreshTask = Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | // Ensure the task reference is reset after completion or failure.
57 | defer { refreshTask = nil }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:30:27: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
24 |
25 | /// Wraps a `CheckedContinuation` so it can be safely passed across concurrency boundaries.
26 | final class ContinuationBox<T>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
27 | // MARK: - Properties
28 |
29 | /// The underlying continuation to resume.
30 | let continuation: CheckedContinuation<T, Error>
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
31 |
32 | // MARK: - Lifecycle
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:38:30: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
24 |
25 | /// Wraps a `CheckedContinuation` so it can be safely passed across concurrency boundaries.
26 | final class ContinuationBox<T>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
27 | // MARK: - Properties
28 |
:
36 | /// - Parameters:
37 | /// - continuation: The continuation to wrap.
38 | init(_ continuation: CheckedContinuation<T, Error>) {
| | `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | self.continuation = continuation
40 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:49:22: error: 'Task' is only available in macOS 10.15 or newer
20 |
21 | /// Internal actor responsible for executing requests and coordinating token refresh.
22 | actor ServiceActor: Sendable {
| `- note: add @available attribute to enclosing actor
23 | // MARK: - Nested Types
24 |
:
47 |
48 | /// Tracks the currently running refresh task, if one exists.
49 | var refreshTask: Task<TokenCredential, Error>?
| `- error: 'Task' is only available in macOS 10.15 or newer
50 |
51 | /// Tracks in-flight GET requests so identical concurrent calls collapse into a single call.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:52:40: error: 'Task' is only available in macOS 10.15 or newer
20 |
21 | /// Internal actor responsible for executing requests and coordinating token refresh.
22 | actor ServiceActor: Sendable {
| `- note: add @available attribute to enclosing actor
23 | // MARK: - Nested Types
24 |
:
50 |
51 | /// Tracks in-flight GET requests so identical concurrent calls collapse into a single call.
52 | var inFlightRequests: [RequestKey: Task<AtomResponse, Error>] = .init()
| `- error: 'Task' is only available in macOS 10.15 or newer
53 |
54 | /// Queue manager used to serialize request execution when a refresh is required.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:123:21: error: 'Task' is only available in macOS 10.15 or newer
84 | // MARK: - Functions
85 |
86 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
87 | /// Applies authorization to the request and executes the provided operation.
88 | ///
:
113 | /// - Returns: The result of the executed request.
114 | /// - Throws: `AtomError` if execution fails.
115 | func performRequest<T: Sendable>(
| `- note: add @available attribute to enclosing instance method
116 | for requestable: any Requestable,
117 | completion: @escaping @Sendable (any Requestable) async throws(AtomError) -> T
:
121 | let box: ContinuationBox = .init(continuation)
122 | requestableQueueManager.enqueue { [requestable, completion, box] in
123 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | await self.performQueuedRequest(for: requestable, completion: completion, box: box)
125 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:123:21: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
84 | // MARK: - Functions
85 |
86 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
87 | /// Applies authorization to the request and executes the provided operation.
88 | ///
:
113 | /// - Returns: The result of the executed request.
114 | /// - Throws: `AtomError` if execution fails.
115 | func performRequest<T: Sendable>(
| `- note: add @available attribute to enclosing instance method
116 | for requestable: any Requestable,
117 | completion: @escaping @Sendable (any Requestable) async throws(AtomError) -> T
:
121 | let box: ContinuationBox = .init(continuation)
122 | requestableQueueManager.enqueue { [requestable, completion, box] in
123 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | await self.performQueuedRequest(for: requestable, completion: completion, box: box)
125 | }
[81/84] Compiling AtomNetworking ServiceActor+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:116:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
113 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
114 | /// - completion: Called with the result.
115 | public func resume<T>(expecting type: T.Type, decoder: JSONDecoder? = nil, completion: @Sendable @escaping (Result<T, AtomError>) -> Void) where T: Model {
| `- note: add @available attribute to enclosing instance method
116 | Task { await serviceActor.resume(for: requestable, expecting: type, decoder: decoder, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:116:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
113 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
114 | /// - completion: Called with the result.
115 | public func resume<T>(expecting type: T.Type, decoder: JSONDecoder? = nil, completion: @Sendable @escaping (Result<T, AtomError>) -> Void) where T: Model {
| `- note: add @available attribute to enclosing instance method
116 | Task { await serviceActor.resume(for: requestable, expecting: type, decoder: decoder, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:133:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
126 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
127 | /// - completion: Called with the result.
128 | public func resume<T>(
| `- note: add @available attribute to enclosing instance method
129 | decoding type: T.Type,
130 | decoder: JSONDecoder? = nil,
131 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
132 | ) where T: Model {
133 | Task { await serviceActor.resume(for: requestable, decoding: type, decoder: decoder, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:133:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
126 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
127 | /// - completion: Called with the result.
128 | public func resume<T>(
| `- note: add @available attribute to enclosing instance method
129 | decoding type: T.Type,
130 | decoder: JSONDecoder? = nil,
131 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
132 | ) where T: Model {
133 | Task { await serviceActor.resume(for: requestable, decoding: type, decoder: decoder, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:141:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
138 | /// - Parameters:
139 | /// - completion: Called with the result.
140 | public func resume(_ completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
141 | Task { await serviceActor.resume(for: requestable, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:141:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
138 | /// - Parameters:
139 | /// - completion: Called with the result.
140 | public func resume(_ completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
141 | Task { await serviceActor.resume(for: requestable, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:38:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
30 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
31 | /// - completion: A `@Sendable` escaping closure called with the result.
32 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
33 | for requestable: any Requestable,
34 | expecting type: T.Type,
:
36 | completion: @Sendable @escaping (Result<T, AtomError>) -> Void
37 | ) {
38 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | do {
40 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:38:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
30 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
31 | /// - completion: A `@Sendable` escaping closure called with the result.
32 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
33 | for requestable: any Requestable,
34 | expecting type: T.Type,
:
36 | completion: @Sendable @escaping (Result<T, AtomError>) -> Void
37 | ) {
38 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | do {
40 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:74:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
66 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
67 | /// - completion: A `@Sendable` escaping closure called with the result.
68 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
69 | for requestable: any Requestable,
70 | decoding type: T.Type,
:
72 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
73 | ) {
74 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | do {
76 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:74:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
66 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
67 | /// - completion: A `@Sendable` escaping closure called with the result.
68 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
69 | for requestable: any Requestable,
70 | decoding type: T.Type,
:
72 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
73 | ) {
74 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | do {
76 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:101:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
98 | /// - requestable: The request to execute.
99 | /// - completion: A `@Sendable` escaping closure called with the result.
100 | func resume(for requestable: any Requestable, completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
101 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | do {
103 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:101:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
98 | /// - requestable: The request to execute.
99 | /// - completion: A `@Sendable` escaping closure called with the result.
100 | func resume(for requestable: any Requestable, completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
101 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | do {
103 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Deduplication.swift:52:20: error: 'Task' is only available in macOS 10.15 or newer
19 | // MARK: - De-duplication
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Executes a request, coalescing identical concurrent GETs into a single transport call.
23 | ///
:
36 | /// - Returns: The raw `AtomResponse`.
37 | /// - Throws: `AtomError` on failure, propagated to every caller awaiting the same in-flight request.
38 | func deduplicatedResponse(for requestable: any Requestable) async throws(AtomError) -> AtomResponse {
| `- note: add @available attribute to enclosing instance method
39 | // Only GETs are combined. A request may also opt out explicitly via `allowsDeduplication`.
40 | guard requestable.method == .get, requestable.allowsDeduplication else {
:
50 |
51 | // Create, store, and ensure removal once we finish.
52 | let task = Task<AtomResponse, Error> {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | try await self.transportResponse(for: requestable)
54 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Deduplication.swift:52:44: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | // MARK: - De-duplication
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Executes a request, coalescing identical concurrent GETs into a single transport call.
23 | ///
:
36 | /// - Returns: The raw `AtomResponse`.
37 | /// - Throws: `AtomError` on failure, propagated to every caller awaiting the same in-flight request.
38 | func deduplicatedResponse(for requestable: any Requestable) async throws(AtomError) -> AtomResponse {
| `- note: add @available attribute to enclosing instance method
39 | // Only GETs are combined. A request may also opt out explicitly via `allowsDeduplication`.
40 | guard requestable.method == .get, requestable.allowsDeduplication else {
:
50 |
51 | // Create, store, and ensure removal once we finish.
52 | let task = Task<AtomResponse, Error> {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | try await self.transportResponse(for: requestable)
54 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Extensions.swift:55:35: error: 'Task' is only available in macOS 10.15 or newer
19 | // MARK: - Helper Properties and Methods
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Applies authorization header to a `Requestable` instance.
23 | ///
:
26 | ///
27 | /// - Returns: A `Requestable` with authorization header applied (if needed) or pass-through requestable.
28 | func applyAuthorizationHeader(to requestable: Requestable) async throws(AtomError) -> any Requestable {
| `- note: add @available attribute to enclosing instance method
29 | // Get the service configuration's authentication method.
30 | let method = serviceConfiguration.authenticationMethod
:
53 | if refreshTask == nil {
54 | // Create a new Task for the background refresh operation.
55 | refreshTask = Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | // Ensure the task reference is reset after completion or failure.
57 | defer { refreshTask = nil }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Extensions.swift:55:35: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | // MARK: - Helper Properties and Methods
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Applies authorization header to a `Requestable` instance.
23 | ///
:
26 | ///
27 | /// - Returns: A `Requestable` with authorization header applied (if needed) or pass-through requestable.
28 | func applyAuthorizationHeader(to requestable: Requestable) async throws(AtomError) -> any Requestable {
| `- note: add @available attribute to enclosing instance method
29 | // Get the service configuration's authentication method.
30 | let method = serviceConfiguration.authenticationMethod
:
53 | if refreshTask == nil {
54 | // Create a new Task for the background refresh operation.
55 | refreshTask = Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | // Ensure the task reference is reset after completion or failure.
57 | defer { refreshTask = nil }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:30:27: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
24 |
25 | /// Wraps a `CheckedContinuation` so it can be safely passed across concurrency boundaries.
26 | final class ContinuationBox<T>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
27 | // MARK: - Properties
28 |
29 | /// The underlying continuation to resume.
30 | let continuation: CheckedContinuation<T, Error>
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
31 |
32 | // MARK: - Lifecycle
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:38:30: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
24 |
25 | /// Wraps a `CheckedContinuation` so it can be safely passed across concurrency boundaries.
26 | final class ContinuationBox<T>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
27 | // MARK: - Properties
28 |
:
36 | /// - Parameters:
37 | /// - continuation: The continuation to wrap.
38 | init(_ continuation: CheckedContinuation<T, Error>) {
| | `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | self.continuation = continuation
40 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:49:22: error: 'Task' is only available in macOS 10.15 or newer
20 |
21 | /// Internal actor responsible for executing requests and coordinating token refresh.
22 | actor ServiceActor: Sendable {
| `- note: add @available attribute to enclosing actor
23 | // MARK: - Nested Types
24 |
:
47 |
48 | /// Tracks the currently running refresh task, if one exists.
49 | var refreshTask: Task<TokenCredential, Error>?
| `- error: 'Task' is only available in macOS 10.15 or newer
50 |
51 | /// Tracks in-flight GET requests so identical concurrent calls collapse into a single call.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:52:40: error: 'Task' is only available in macOS 10.15 or newer
20 |
21 | /// Internal actor responsible for executing requests and coordinating token refresh.
22 | actor ServiceActor: Sendable {
| `- note: add @available attribute to enclosing actor
23 | // MARK: - Nested Types
24 |
:
50 |
51 | /// Tracks in-flight GET requests so identical concurrent calls collapse into a single call.
52 | var inFlightRequests: [RequestKey: Task<AtomResponse, Error>] = .init()
| `- error: 'Task' is only available in macOS 10.15 or newer
53 |
54 | /// Queue manager used to serialize request execution when a refresh is required.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:123:21: error: 'Task' is only available in macOS 10.15 or newer
84 | // MARK: - Functions
85 |
86 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
87 | /// Applies authorization to the request and executes the provided operation.
88 | ///
:
113 | /// - Returns: The result of the executed request.
114 | /// - Throws: `AtomError` if execution fails.
115 | func performRequest<T: Sendable>(
| `- note: add @available attribute to enclosing instance method
116 | for requestable: any Requestable,
117 | completion: @escaping @Sendable (any Requestable) async throws(AtomError) -> T
:
121 | let box: ContinuationBox = .init(continuation)
122 | requestableQueueManager.enqueue { [requestable, completion, box] in
123 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | await self.performQueuedRequest(for: requestable, completion: completion, box: box)
125 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:123:21: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
84 | // MARK: - Functions
85 |
86 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
87 | /// Applies authorization to the request and executes the provided operation.
88 | ///
:
113 | /// - Returns: The result of the executed request.
114 | /// - Throws: `AtomError` if execution fails.
115 | func performRequest<T: Sendable>(
| `- note: add @available attribute to enclosing instance method
116 | for requestable: any Requestable,
117 | completion: @escaping @Sendable (any Requestable) async throws(AtomError) -> T
:
121 | let box: ContinuationBox = .init(continuation)
122 | requestableQueueManager.enqueue { [requestable, completion, box] in
123 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | await self.performQueuedRequest(for: requestable, completion: completion, box: box)
125 | }
[82/84] Compiling AtomNetworking ServiceActor+Plugins.swift
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:116:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
113 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
114 | /// - completion: Called with the result.
115 | public func resume<T>(expecting type: T.Type, decoder: JSONDecoder? = nil, completion: @Sendable @escaping (Result<T, AtomError>) -> Void) where T: Model {
| `- note: add @available attribute to enclosing instance method
116 | Task { await serviceActor.resume(for: requestable, expecting: type, decoder: decoder, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:116:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
113 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
114 | /// - completion: Called with the result.
115 | public func resume<T>(expecting type: T.Type, decoder: JSONDecoder? = nil, completion: @Sendable @escaping (Result<T, AtomError>) -> Void) where T: Model {
| `- note: add @available attribute to enclosing instance method
116 | Task { await serviceActor.resume(for: requestable, expecting: type, decoder: decoder, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:133:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
126 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
127 | /// - completion: Called with the result.
128 | public func resume<T>(
| `- note: add @available attribute to enclosing instance method
129 | decoding type: T.Type,
130 | decoder: JSONDecoder? = nil,
131 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
132 | ) where T: Model {
133 | Task { await serviceActor.resume(for: requestable, decoding: type, decoder: decoder, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:133:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
126 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
127 | /// - completion: Called with the result.
128 | public func resume<T>(
| `- note: add @available attribute to enclosing instance method
129 | decoding type: T.Type,
130 | decoder: JSONDecoder? = nil,
131 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
132 | ) where T: Model {
133 | Task { await serviceActor.resume(for: requestable, decoding: type, decoder: decoder, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:141:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
138 | /// - Parameters:
139 | /// - completion: Called with the result.
140 | public func resume(_ completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
141 | Task { await serviceActor.resume(for: requestable, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:141:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
138 | /// - Parameters:
139 | /// - completion: Called with the result.
140 | public func resume(_ completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
141 | Task { await serviceActor.resume(for: requestable, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:38:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
30 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
31 | /// - completion: A `@Sendable` escaping closure called with the result.
32 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
33 | for requestable: any Requestable,
34 | expecting type: T.Type,
:
36 | completion: @Sendable @escaping (Result<T, AtomError>) -> Void
37 | ) {
38 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | do {
40 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:38:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
30 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
31 | /// - completion: A `@Sendable` escaping closure called with the result.
32 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
33 | for requestable: any Requestable,
34 | expecting type: T.Type,
:
36 | completion: @Sendable @escaping (Result<T, AtomError>) -> Void
37 | ) {
38 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | do {
40 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:74:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
66 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
67 | /// - completion: A `@Sendable` escaping closure called with the result.
68 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
69 | for requestable: any Requestable,
70 | decoding type: T.Type,
:
72 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
73 | ) {
74 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | do {
76 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:74:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
66 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
67 | /// - completion: A `@Sendable` escaping closure called with the result.
68 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
69 | for requestable: any Requestable,
70 | decoding type: T.Type,
:
72 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
73 | ) {
74 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | do {
76 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:101:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
98 | /// - requestable: The request to execute.
99 | /// - completion: A `@Sendable` escaping closure called with the result.
100 | func resume(for requestable: any Requestable, completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
101 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | do {
103 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:101:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
98 | /// - requestable: The request to execute.
99 | /// - completion: A `@Sendable` escaping closure called with the result.
100 | func resume(for requestable: any Requestable, completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
101 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | do {
103 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Deduplication.swift:52:20: error: 'Task' is only available in macOS 10.15 or newer
19 | // MARK: - De-duplication
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Executes a request, coalescing identical concurrent GETs into a single transport call.
23 | ///
:
36 | /// - Returns: The raw `AtomResponse`.
37 | /// - Throws: `AtomError` on failure, propagated to every caller awaiting the same in-flight request.
38 | func deduplicatedResponse(for requestable: any Requestable) async throws(AtomError) -> AtomResponse {
| `- note: add @available attribute to enclosing instance method
39 | // Only GETs are combined. A request may also opt out explicitly via `allowsDeduplication`.
40 | guard requestable.method == .get, requestable.allowsDeduplication else {
:
50 |
51 | // Create, store, and ensure removal once we finish.
52 | let task = Task<AtomResponse, Error> {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | try await self.transportResponse(for: requestable)
54 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Deduplication.swift:52:44: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | // MARK: - De-duplication
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Executes a request, coalescing identical concurrent GETs into a single transport call.
23 | ///
:
36 | /// - Returns: The raw `AtomResponse`.
37 | /// - Throws: `AtomError` on failure, propagated to every caller awaiting the same in-flight request.
38 | func deduplicatedResponse(for requestable: any Requestable) async throws(AtomError) -> AtomResponse {
| `- note: add @available attribute to enclosing instance method
39 | // Only GETs are combined. A request may also opt out explicitly via `allowsDeduplication`.
40 | guard requestable.method == .get, requestable.allowsDeduplication else {
:
50 |
51 | // Create, store, and ensure removal once we finish.
52 | let task = Task<AtomResponse, Error> {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | try await self.transportResponse(for: requestable)
54 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Extensions.swift:55:35: error: 'Task' is only available in macOS 10.15 or newer
19 | // MARK: - Helper Properties and Methods
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Applies authorization header to a `Requestable` instance.
23 | ///
:
26 | ///
27 | /// - Returns: A `Requestable` with authorization header applied (if needed) or pass-through requestable.
28 | func applyAuthorizationHeader(to requestable: Requestable) async throws(AtomError) -> any Requestable {
| `- note: add @available attribute to enclosing instance method
29 | // Get the service configuration's authentication method.
30 | let method = serviceConfiguration.authenticationMethod
:
53 | if refreshTask == nil {
54 | // Create a new Task for the background refresh operation.
55 | refreshTask = Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | // Ensure the task reference is reset after completion or failure.
57 | defer { refreshTask = nil }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Extensions.swift:55:35: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | // MARK: - Helper Properties and Methods
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Applies authorization header to a `Requestable` instance.
23 | ///
:
26 | ///
27 | /// - Returns: A `Requestable` with authorization header applied (if needed) or pass-through requestable.
28 | func applyAuthorizationHeader(to requestable: Requestable) async throws(AtomError) -> any Requestable {
| `- note: add @available attribute to enclosing instance method
29 | // Get the service configuration's authentication method.
30 | let method = serviceConfiguration.authenticationMethod
:
53 | if refreshTask == nil {
54 | // Create a new Task for the background refresh operation.
55 | refreshTask = Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | // Ensure the task reference is reset after completion or failure.
57 | defer { refreshTask = nil }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:30:27: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
24 |
25 | /// Wraps a `CheckedContinuation` so it can be safely passed across concurrency boundaries.
26 | final class ContinuationBox<T>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
27 | // MARK: - Properties
28 |
29 | /// The underlying continuation to resume.
30 | let continuation: CheckedContinuation<T, Error>
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
31 |
32 | // MARK: - Lifecycle
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:38:30: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
24 |
25 | /// Wraps a `CheckedContinuation` so it can be safely passed across concurrency boundaries.
26 | final class ContinuationBox<T>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
27 | // MARK: - Properties
28 |
:
36 | /// - Parameters:
37 | /// - continuation: The continuation to wrap.
38 | init(_ continuation: CheckedContinuation<T, Error>) {
| | `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | self.continuation = continuation
40 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:49:22: error: 'Task' is only available in macOS 10.15 or newer
20 |
21 | /// Internal actor responsible for executing requests and coordinating token refresh.
22 | actor ServiceActor: Sendable {
| `- note: add @available attribute to enclosing actor
23 | // MARK: - Nested Types
24 |
:
47 |
48 | /// Tracks the currently running refresh task, if one exists.
49 | var refreshTask: Task<TokenCredential, Error>?
| `- error: 'Task' is only available in macOS 10.15 or newer
50 |
51 | /// Tracks in-flight GET requests so identical concurrent calls collapse into a single call.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:52:40: error: 'Task' is only available in macOS 10.15 or newer
20 |
21 | /// Internal actor responsible for executing requests and coordinating token refresh.
22 | actor ServiceActor: Sendable {
| `- note: add @available attribute to enclosing actor
23 | // MARK: - Nested Types
24 |
:
50 |
51 | /// Tracks in-flight GET requests so identical concurrent calls collapse into a single call.
52 | var inFlightRequests: [RequestKey: Task<AtomResponse, Error>] = .init()
| `- error: 'Task' is only available in macOS 10.15 or newer
53 |
54 | /// Queue manager used to serialize request execution when a refresh is required.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:123:21: error: 'Task' is only available in macOS 10.15 or newer
84 | // MARK: - Functions
85 |
86 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
87 | /// Applies authorization to the request and executes the provided operation.
88 | ///
:
113 | /// - Returns: The result of the executed request.
114 | /// - Throws: `AtomError` if execution fails.
115 | func performRequest<T: Sendable>(
| `- note: add @available attribute to enclosing instance method
116 | for requestable: any Requestable,
117 | completion: @escaping @Sendable (any Requestable) async throws(AtomError) -> T
:
121 | let box: ContinuationBox = .init(continuation)
122 | requestableQueueManager.enqueue { [requestable, completion, box] in
123 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | await self.performQueuedRequest(for: requestable, completion: completion, box: box)
125 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:123:21: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
84 | // MARK: - Functions
85 |
86 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
87 | /// Applies authorization to the request and executes the provided operation.
88 | ///
:
113 | /// - Returns: The result of the executed request.
114 | /// - Throws: `AtomError` if execution fails.
115 | func performRequest<T: Sendable>(
| `- note: add @available attribute to enclosing instance method
116 | for requestable: any Requestable,
117 | completion: @escaping @Sendable (any Requestable) async throws(AtomError) -> T
:
121 | let box: ContinuationBox = .init(continuation)
122 | requestableQueueManager.enqueue { [requestable, completion, box] in
123 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | await self.performQueuedRequest(for: requestable, completion: completion, box: box)
125 | }
[83/84] Compiling AtomNetworking ServiceActor+RequestKey.swift
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:116:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
113 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
114 | /// - completion: Called with the result.
115 | public func resume<T>(expecting type: T.Type, decoder: JSONDecoder? = nil, completion: @Sendable @escaping (Result<T, AtomError>) -> Void) where T: Model {
| `- note: add @available attribute to enclosing instance method
116 | Task { await serviceActor.resume(for: requestable, expecting: type, decoder: decoder, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:116:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
113 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
114 | /// - completion: Called with the result.
115 | public func resume<T>(expecting type: T.Type, decoder: JSONDecoder? = nil, completion: @Sendable @escaping (Result<T, AtomError>) -> Void) where T: Model {
| `- note: add @available attribute to enclosing instance method
116 | Task { await serviceActor.resume(for: requestable, expecting: type, decoder: decoder, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:133:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
126 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
127 | /// - completion: Called with the result.
128 | public func resume<T>(
| `- note: add @available attribute to enclosing instance method
129 | decoding type: T.Type,
130 | decoder: JSONDecoder? = nil,
131 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
132 | ) where T: Model {
133 | Task { await serviceActor.resume(for: requestable, decoding: type, decoder: decoder, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:133:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
126 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
127 | /// - completion: Called with the result.
128 | public func resume<T>(
| `- note: add @available attribute to enclosing instance method
129 | decoding type: T.Type,
130 | decoder: JSONDecoder? = nil,
131 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
132 | ) where T: Model {
133 | Task { await serviceActor.resume(for: requestable, decoding: type, decoder: decoder, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:141:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
138 | /// - Parameters:
139 | /// - completion: Called with the result.
140 | public func resume(_ completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
141 | Task { await serviceActor.resume(for: requestable, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:141:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
138 | /// - Parameters:
139 | /// - completion: Called with the result.
140 | public func resume(_ completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
141 | Task { await serviceActor.resume(for: requestable, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:38:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
30 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
31 | /// - completion: A `@Sendable` escaping closure called with the result.
32 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
33 | for requestable: any Requestable,
34 | expecting type: T.Type,
:
36 | completion: @Sendable @escaping (Result<T, AtomError>) -> Void
37 | ) {
38 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | do {
40 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:38:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
30 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
31 | /// - completion: A `@Sendable` escaping closure called with the result.
32 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
33 | for requestable: any Requestable,
34 | expecting type: T.Type,
:
36 | completion: @Sendable @escaping (Result<T, AtomError>) -> Void
37 | ) {
38 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | do {
40 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:74:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
66 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
67 | /// - completion: A `@Sendable` escaping closure called with the result.
68 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
69 | for requestable: any Requestable,
70 | decoding type: T.Type,
:
72 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
73 | ) {
74 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | do {
76 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:74:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
66 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
67 | /// - completion: A `@Sendable` escaping closure called with the result.
68 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
69 | for requestable: any Requestable,
70 | decoding type: T.Type,
:
72 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
73 | ) {
74 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | do {
76 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:101:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
98 | /// - requestable: The request to execute.
99 | /// - completion: A `@Sendable` escaping closure called with the result.
100 | func resume(for requestable: any Requestable, completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
101 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | do {
103 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:101:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
98 | /// - requestable: The request to execute.
99 | /// - completion: A `@Sendable` escaping closure called with the result.
100 | func resume(for requestable: any Requestable, completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
101 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | do {
103 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Deduplication.swift:52:20: error: 'Task' is only available in macOS 10.15 or newer
19 | // MARK: - De-duplication
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Executes a request, coalescing identical concurrent GETs into a single transport call.
23 | ///
:
36 | /// - Returns: The raw `AtomResponse`.
37 | /// - Throws: `AtomError` on failure, propagated to every caller awaiting the same in-flight request.
38 | func deduplicatedResponse(for requestable: any Requestable) async throws(AtomError) -> AtomResponse {
| `- note: add @available attribute to enclosing instance method
39 | // Only GETs are combined. A request may also opt out explicitly via `allowsDeduplication`.
40 | guard requestable.method == .get, requestable.allowsDeduplication else {
:
50 |
51 | // Create, store, and ensure removal once we finish.
52 | let task = Task<AtomResponse, Error> {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | try await self.transportResponse(for: requestable)
54 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Deduplication.swift:52:44: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | // MARK: - De-duplication
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Executes a request, coalescing identical concurrent GETs into a single transport call.
23 | ///
:
36 | /// - Returns: The raw `AtomResponse`.
37 | /// - Throws: `AtomError` on failure, propagated to every caller awaiting the same in-flight request.
38 | func deduplicatedResponse(for requestable: any Requestable) async throws(AtomError) -> AtomResponse {
| `- note: add @available attribute to enclosing instance method
39 | // Only GETs are combined. A request may also opt out explicitly via `allowsDeduplication`.
40 | guard requestable.method == .get, requestable.allowsDeduplication else {
:
50 |
51 | // Create, store, and ensure removal once we finish.
52 | let task = Task<AtomResponse, Error> {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | try await self.transportResponse(for: requestable)
54 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Extensions.swift:55:35: error: 'Task' is only available in macOS 10.15 or newer
19 | // MARK: - Helper Properties and Methods
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Applies authorization header to a `Requestable` instance.
23 | ///
:
26 | ///
27 | /// - Returns: A `Requestable` with authorization header applied (if needed) or pass-through requestable.
28 | func applyAuthorizationHeader(to requestable: Requestable) async throws(AtomError) -> any Requestable {
| `- note: add @available attribute to enclosing instance method
29 | // Get the service configuration's authentication method.
30 | let method = serviceConfiguration.authenticationMethod
:
53 | if refreshTask == nil {
54 | // Create a new Task for the background refresh operation.
55 | refreshTask = Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | // Ensure the task reference is reset after completion or failure.
57 | defer { refreshTask = nil }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Extensions.swift:55:35: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | // MARK: - Helper Properties and Methods
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Applies authorization header to a `Requestable` instance.
23 | ///
:
26 | ///
27 | /// - Returns: A `Requestable` with authorization header applied (if needed) or pass-through requestable.
28 | func applyAuthorizationHeader(to requestable: Requestable) async throws(AtomError) -> any Requestable {
| `- note: add @available attribute to enclosing instance method
29 | // Get the service configuration's authentication method.
30 | let method = serviceConfiguration.authenticationMethod
:
53 | if refreshTask == nil {
54 | // Create a new Task for the background refresh operation.
55 | refreshTask = Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | // Ensure the task reference is reset after completion or failure.
57 | defer { refreshTask = nil }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:30:27: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
24 |
25 | /// Wraps a `CheckedContinuation` so it can be safely passed across concurrency boundaries.
26 | final class ContinuationBox<T>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
27 | // MARK: - Properties
28 |
29 | /// The underlying continuation to resume.
30 | let continuation: CheckedContinuation<T, Error>
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
31 |
32 | // MARK: - Lifecycle
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:38:30: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
24 |
25 | /// Wraps a `CheckedContinuation` so it can be safely passed across concurrency boundaries.
26 | final class ContinuationBox<T>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
27 | // MARK: - Properties
28 |
:
36 | /// - Parameters:
37 | /// - continuation: The continuation to wrap.
38 | init(_ continuation: CheckedContinuation<T, Error>) {
| | `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | self.continuation = continuation
40 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:49:22: error: 'Task' is only available in macOS 10.15 or newer
20 |
21 | /// Internal actor responsible for executing requests and coordinating token refresh.
22 | actor ServiceActor: Sendable {
| `- note: add @available attribute to enclosing actor
23 | // MARK: - Nested Types
24 |
:
47 |
48 | /// Tracks the currently running refresh task, if one exists.
49 | var refreshTask: Task<TokenCredential, Error>?
| `- error: 'Task' is only available in macOS 10.15 or newer
50 |
51 | /// Tracks in-flight GET requests so identical concurrent calls collapse into a single call.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:52:40: error: 'Task' is only available in macOS 10.15 or newer
20 |
21 | /// Internal actor responsible for executing requests and coordinating token refresh.
22 | actor ServiceActor: Sendable {
| `- note: add @available attribute to enclosing actor
23 | // MARK: - Nested Types
24 |
:
50 |
51 | /// Tracks in-flight GET requests so identical concurrent calls collapse into a single call.
52 | var inFlightRequests: [RequestKey: Task<AtomResponse, Error>] = .init()
| `- error: 'Task' is only available in macOS 10.15 or newer
53 |
54 | /// Queue manager used to serialize request execution when a refresh is required.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:123:21: error: 'Task' is only available in macOS 10.15 or newer
84 | // MARK: - Functions
85 |
86 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
87 | /// Applies authorization to the request and executes the provided operation.
88 | ///
:
113 | /// - Returns: The result of the executed request.
114 | /// - Throws: `AtomError` if execution fails.
115 | func performRequest<T: Sendable>(
| `- note: add @available attribute to enclosing instance method
116 | for requestable: any Requestable,
117 | completion: @escaping @Sendable (any Requestable) async throws(AtomError) -> T
:
121 | let box: ContinuationBox = .init(continuation)
122 | requestableQueueManager.enqueue { [requestable, completion, box] in
123 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | await self.performQueuedRequest(for: requestable, completion: completion, box: box)
125 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:123:21: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
84 | // MARK: - Functions
85 |
86 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
87 | /// Applies authorization to the request and executes the provided operation.
88 | ///
:
113 | /// - Returns: The result of the executed request.
114 | /// - Throws: `AtomError` if execution fails.
115 | func performRequest<T: Sendable>(
| `- note: add @available attribute to enclosing instance method
116 | for requestable: any Requestable,
117 | completion: @escaping @Sendable (any Requestable) async throws(AtomError) -> T
:
121 | let box: ContinuationBox = .init(continuation)
122 | requestableQueueManager.enqueue { [requestable, completion, box] in
123 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | await self.performQueuedRequest(for: requestable, completion: completion, box: box)
125 | }
[84/84] Compiling AtomNetworking ServiceActor.swift
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:116:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
113 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
114 | /// - completion: Called with the result.
115 | public func resume<T>(expecting type: T.Type, decoder: JSONDecoder? = nil, completion: @Sendable @escaping (Result<T, AtomError>) -> Void) where T: Model {
| `- note: add @available attribute to enclosing instance method
116 | Task { await serviceActor.resume(for: requestable, expecting: type, decoder: decoder, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:116:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
113 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
114 | /// - completion: Called with the result.
115 | public func resume<T>(expecting type: T.Type, decoder: JSONDecoder? = nil, completion: @Sendable @escaping (Result<T, AtomError>) -> Void) where T: Model {
| `- note: add @available attribute to enclosing instance method
116 | Task { await serviceActor.resume(for: requestable, expecting: type, decoder: decoder, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:133:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
126 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
127 | /// - completion: Called with the result.
128 | public func resume<T>(
| `- note: add @available attribute to enclosing instance method
129 | decoding type: T.Type,
130 | decoder: JSONDecoder? = nil,
131 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
132 | ) where T: Model {
133 | Task { await serviceActor.resume(for: requestable, decoding: type, decoder: decoder, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:133:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
126 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
127 | /// - completion: Called with the result.
128 | public func resume<T>(
| `- note: add @available attribute to enclosing instance method
129 | decoding type: T.Type,
130 | decoder: JSONDecoder? = nil,
131 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
132 | ) where T: Model {
133 | Task { await serviceActor.resume(for: requestable, decoding: type, decoder: decoder, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 |
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:141:9: error: 'Task' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
138 | /// - Parameters:
139 | /// - completion: Called with the result.
140 | public func resume(_ completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
141 | Task { await serviceActor.resume(for: requestable, completion: completion) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/Service.swift:141:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
46 | /// }
47 | /// ```
48 | public final class Service: Sendable {
| `- note: add @available attribute to enclosing class
49 | // MARK: - Properties
50 |
:
138 | /// - Parameters:
139 | /// - completion: Called with the result.
140 | public func resume(_ completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
141 | Task { await serviceActor.resume(for: requestable, completion: completion) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:38:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
30 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
31 | /// - completion: A `@Sendable` escaping closure called with the result.
32 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
33 | for requestable: any Requestable,
34 | expecting type: T.Type,
:
36 | completion: @Sendable @escaping (Result<T, AtomError>) -> Void
37 | ) {
38 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | do {
40 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:38:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
30 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
31 | /// - completion: A `@Sendable` escaping closure called with the result.
32 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
33 | for requestable: any Requestable,
34 | expecting type: T.Type,
:
36 | completion: @Sendable @escaping (Result<T, AtomError>) -> Void
37 | ) {
38 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | do {
40 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:74:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
66 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
67 | /// - completion: A `@Sendable` escaping closure called with the result.
68 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
69 | for requestable: any Requestable,
70 | decoding type: T.Type,
:
72 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
73 | ) {
74 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | do {
76 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:74:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
66 | /// - decoder: An optional decoder to use for this call only. Omit (or pass `nil`) to use the service-configured decoder.
67 | /// - completion: A `@Sendable` escaping closure called with the result.
68 | func resume<T: Model>(
| `- note: add @available attribute to enclosing instance method
69 | for requestable: any Requestable,
70 | decoding type: T.Type,
:
72 | completion: @Sendable @escaping (Result<DecodedResponse<T>, AtomError>) -> Void
73 | ) {
74 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | do {
76 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:101:9: error: 'Task' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
98 | /// - requestable: The request to execute.
99 | /// - completion: A `@Sendable` escaping closure called with the result.
100 | func resume(for requestable: any Requestable, completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
101 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | do {
103 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Completions.swift:101:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
17 | import Foundation
18 |
19 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
20 | /// Completion-based overload of resume expecting a decodable model type.
21 | ///
:
98 | /// - requestable: The request to execute.
99 | /// - completion: A `@Sendable` escaping closure called with the result.
100 | func resume(for requestable: any Requestable, completion: @Sendable @escaping (Result<AtomResponse, AtomError>) -> Void) {
| `- note: add @available attribute to enclosing instance method
101 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | do {
103 | // Perform the async resume operation on the session actor.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Deduplication.swift:52:20: error: 'Task' is only available in macOS 10.15 or newer
19 | // MARK: - De-duplication
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Executes a request, coalescing identical concurrent GETs into a single transport call.
23 | ///
:
36 | /// - Returns: The raw `AtomResponse`.
37 | /// - Throws: `AtomError` on failure, propagated to every caller awaiting the same in-flight request.
38 | func deduplicatedResponse(for requestable: any Requestable) async throws(AtomError) -> AtomResponse {
| `- note: add @available attribute to enclosing instance method
39 | // Only GETs are combined. A request may also opt out explicitly via `allowsDeduplication`.
40 | guard requestable.method == .get, requestable.allowsDeduplication else {
:
50 |
51 | // Create, store, and ensure removal once we finish.
52 | let task = Task<AtomResponse, Error> {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | try await self.transportResponse(for: requestable)
54 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Deduplication.swift:52:44: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | // MARK: - De-duplication
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Executes a request, coalescing identical concurrent GETs into a single transport call.
23 | ///
:
36 | /// - Returns: The raw `AtomResponse`.
37 | /// - Throws: `AtomError` on failure, propagated to every caller awaiting the same in-flight request.
38 | func deduplicatedResponse(for requestable: any Requestable) async throws(AtomError) -> AtomResponse {
| `- note: add @available attribute to enclosing instance method
39 | // Only GETs are combined. A request may also opt out explicitly via `allowsDeduplication`.
40 | guard requestable.method == .get, requestable.allowsDeduplication else {
:
50 |
51 | // Create, store, and ensure removal once we finish.
52 | let task = Task<AtomResponse, Error> {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | try await self.transportResponse(for: requestable)
54 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Extensions.swift:55:35: error: 'Task' is only available in macOS 10.15 or newer
19 | // MARK: - Helper Properties and Methods
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Applies authorization header to a `Requestable` instance.
23 | ///
:
26 | ///
27 | /// - Returns: A `Requestable` with authorization header applied (if needed) or pass-through requestable.
28 | func applyAuthorizationHeader(to requestable: Requestable) async throws(AtomError) -> any Requestable {
| `- note: add @available attribute to enclosing instance method
29 | // Get the service configuration's authentication method.
30 | let method = serviceConfiguration.authenticationMethod
:
53 | if refreshTask == nil {
54 | // Create a new Task for the background refresh operation.
55 | refreshTask = Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | // Ensure the task reference is reset after completion or failure.
57 | defer { refreshTask = nil }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor+Extensions.swift:55:35: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | // MARK: - Helper Properties and Methods
20 |
21 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
22 | /// Applies authorization header to a `Requestable` instance.
23 | ///
:
26 | ///
27 | /// - Returns: A `Requestable` with authorization header applied (if needed) or pass-through requestable.
28 | func applyAuthorizationHeader(to requestable: Requestable) async throws(AtomError) -> any Requestable {
| `- note: add @available attribute to enclosing instance method
29 | // Get the service configuration's authentication method.
30 | let method = serviceConfiguration.authenticationMethod
:
53 | if refreshTask == nil {
54 | // Create a new Task for the background refresh operation.
55 | refreshTask = Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | // Ensure the task reference is reset after completion or failure.
57 | defer { refreshTask = nil }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:30:27: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
24 |
25 | /// Wraps a `CheckedContinuation` so it can be safely passed across concurrency boundaries.
26 | final class ContinuationBox<T>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
27 | // MARK: - Properties
28 |
29 | /// The underlying continuation to resume.
30 | let continuation: CheckedContinuation<T, Error>
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
31 |
32 | // MARK: - Lifecycle
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:38:30: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
24 |
25 | /// Wraps a `CheckedContinuation` so it can be safely passed across concurrency boundaries.
26 | final class ContinuationBox<T>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
27 | // MARK: - Properties
28 |
:
36 | /// - Parameters:
37 | /// - continuation: The continuation to wrap.
38 | init(_ continuation: CheckedContinuation<T, Error>) {
| | `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | self.continuation = continuation
40 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:49:22: error: 'Task' is only available in macOS 10.15 or newer
20 |
21 | /// Internal actor responsible for executing requests and coordinating token refresh.
22 | actor ServiceActor: Sendable {
| `- note: add @available attribute to enclosing actor
23 | // MARK: - Nested Types
24 |
:
47 |
48 | /// Tracks the currently running refresh task, if one exists.
49 | var refreshTask: Task<TokenCredential, Error>?
| `- error: 'Task' is only available in macOS 10.15 or newer
50 |
51 | /// Tracks in-flight GET requests so identical concurrent calls collapse into a single call.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:52:40: error: 'Task' is only available in macOS 10.15 or newer
20 |
21 | /// Internal actor responsible for executing requests and coordinating token refresh.
22 | actor ServiceActor: Sendable {
| `- note: add @available attribute to enclosing actor
23 | // MARK: - Nested Types
24 |
:
50 |
51 | /// Tracks in-flight GET requests so identical concurrent calls collapse into a single call.
52 | var inFlightRequests: [RequestKey: Task<AtomResponse, Error>] = .init()
| `- error: 'Task' is only available in macOS 10.15 or newer
53 |
54 | /// Queue manager used to serialize request execution when a refresh is required.
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:123:21: error: 'Task' is only available in macOS 10.15 or newer
84 | // MARK: - Functions
85 |
86 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
87 | /// Applies authorization to the request and executes the provided operation.
88 | ///
:
113 | /// - Returns: The result of the executed request.
114 | /// - Throws: `AtomError` if execution fails.
115 | func performRequest<T: Sendable>(
| `- note: add @available attribute to enclosing instance method
116 | for requestable: any Requestable,
117 | completion: @escaping @Sendable (any Requestable) async throws(AtomError) -> T
:
121 | let box: ContinuationBox = .init(continuation)
122 | requestableQueueManager.enqueue { [requestable, completion, box] in
123 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | await self.performQueuedRequest(for: requestable, completion: completion, box: box)
125 | }
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Atom/Service/ServiceActor.swift:123:21: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
84 | // MARK: - Functions
85 |
86 | extension ServiceActor {
| `- note: add @available attribute to enclosing extension
87 | /// Applies authorization to the request and executes the provided operation.
88 | ///
:
113 | /// - Returns: The result of the executed request.
114 | /// - Throws: `AtomError` if execution fails.
115 | func performRequest<T: Sendable>(
| `- note: add @available attribute to enclosing instance method
116 | for requestable: any Requestable,
117 | completion: @escaping @Sendable (any Requestable) async throws(AtomError) -> T
:
121 | let box: ContinuationBox = .init(continuation)
122 | requestableQueueManager.enqueue { [requestable, completion, box] in
123 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | await self.performQueuedRequest(for: requestable, completion: completion, box: box)
125 | }
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Framework/AtomNetworking/Info.plist
BUILD FAILURE 6.1 macosSpm