Skip to content

Commit 99be1dc

Browse files
committed
Exposes DownloadHandle properties
Makes the properties of the DownloadHandle struct publicly accessible. This allows external code to observe download progress, await the finished result, and trigger cancellation.
1 parent f133a75 commit 99be1dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Service/Downloader.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ public extension Network.Service {
1010

1111
// MARK: - Public
1212
public struct DownloadHandle {
13-
let progress: AsyncStream<Float>
14-
let finished: Task<URL, Error>
15-
let cancel: @Sendable () -> Void
13+
public let progress: AsyncStream<Float>
14+
public let finished: Task<URL, Error>
15+
public let cancel: @Sendable () -> Void
1616
}
1717

1818
// MARK: - Init

0 commit comments

Comments
 (0)