Skip to content

Commit 10f42e6

Browse files
authored
FileDownloadDelegate: mark Progress as Sendable (#643)
This is a trivial struct that should be `Sendable`, as it's a common use case to pass `Progress` values to `@Sendable` closures.
1 parent 0bdc425 commit 10f42e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AsyncHTTPClient/FileDownloadDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import NIOPosix
2020
public final class FileDownloadDelegate: HTTPClientResponseDelegate {
2121
/// The response type for this delegate: the total count of bytes as reported by the response
2222
/// "Content-Length" header (if available) and the count of bytes downloaded.
23-
public struct Progress {
23+
public struct Progress: Sendable {
2424
public var totalBytes: Int?
2525
public var receivedBytes: Int
2626
}

0 commit comments

Comments
 (0)