Skip to content

Commit 436727c

Browse files
committed
chore: remove unused async signatures
1 parent f792921 commit 436727c

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

Sources/Networking/Core/Download/DownloadAPIManager.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ extension DownloadAPIManager: DownloadAPIManaging {
9696
) async throws -> DownloadResult {
9797
/// create identifiable request from endpoint
9898
let endpointRequest = EndpointRequest(endpoint, sessionId: sessionId)
99-
return try await downloadRequest(endpointRequest, resumableData: resumableData, retryConfiguration: retryConfiguration)
99+
return try await downloadRequest(
100+
endpointRequest,
101+
resumableData: resumableData,
102+
retryConfiguration: retryConfiguration
103+
)
100104
}
101105

102106
/// Creates an async stream of download state updates for a given task.

Sources/Networking/Core/Download/DownloadAPIManaging.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,11 @@ public protocol DownloadAPIManaging: Sendable {
3636
resumableData: Data?,
3737
retryConfiguration: RetryConfiguration?
3838
) async throws -> DownloadResult
39-
40-
39+
4140
/// Provides real time download updates for a given `URLSessionTask`
4241
/// - Parameter task: The task whose updates are requested.
4342
/// - Returns: An async stream of download states describing the task's download progress.
44-
func progressStream(for task: URLSessionTask) async -> AsyncStream<URLSessionTask.DownloadState>
43+
func progressStream(for task: URLSessionTask) -> AsyncStream<URLSessionTask.DownloadState>
4544
}
4645

4746
public extension DownloadAPIManaging {

Sources/Networking/Core/Upload/UploadAPIManaging.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public protocol UploadAPIManaging: Sendable {
4646
///
4747
/// The internal implementation uses Apple's delegate pattern which retains a strong reference to the delegate. You must call this method to allow the manager to be released from the memory, otherwise your app will be leaking until your app exits or the session is invalidated.
4848
/// - Parameter shouldFinishTasks: Determines whether all outstanding tasks should finish before invalidating the session or be immediately cancelled.
49-
func invalidateSession(shouldFinishTasks: Bool) async
49+
func invalidateSession(shouldFinishTasks: Bool)
5050
}
5151

5252
@available(iOS 15.0, *)

0 commit comments

Comments
 (0)