Skip to content

Commit df692f1

Browse files
committed
make enums frozen
1 parent 567555b commit df692f1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Proposals/0023-progress-manager.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,11 +701,13 @@ If you would like to report additional metadata or properties that are not part
701701
@available(FoundationPreview 6.3, *)
702702
extension ProgressManager {
703703

704+
@frozen
704705
public enum Properties {
705706

706707
/// The total number of files.
707708
public var totalFileCount: TotalFileCount.Type { get }
708709

710+
@frozen
709711
public enum TotalFileCount : Sendable, Property {
710712

711713
public typealias Value = Int
@@ -727,7 +729,8 @@ extension ProgressManager {
727729

728730
/// The number of completed files.
729731
public var completedFileCount: CompletedFileCount.Type { get }
730-
732+
733+
@frozen
731734
public enum CompletedFileCount : Sendable, Property {
732735

733736
public typealias Value = Int
@@ -750,6 +753,7 @@ extension ProgressManager {
750753
/// The total number of bytes.
751754
public var totalByteCount: TotalByteCount.Type { get }
752755

756+
@frozen
753757
public enum TotalByteCount : Sendable, Property {
754758

755759
public typealias Value = UInt64
@@ -772,6 +776,7 @@ extension ProgressManager {
772776
/// The number of completed bytes.
773777
public var completedByteCount: CompletedByteCount.Type { get }
774778

779+
@frozen
775780
public enum CompletedByteCount : Sendable, Property {
776781

777782
public typealias Value = UInt64
@@ -794,6 +799,7 @@ extension ProgressManager {
794799
/// The throughput, in bytes per second.
795800
public var throughput: Throughput.Type { get }
796801

802+
@frozen
797803
public enum Throughput : Sendable, Property {
798804

799805
public typealias Value = UInt64
@@ -816,6 +822,7 @@ extension ProgressManager {
816822
/// The amount of time remaining in operation.
817823
public var estimatedTimeRemaining: EstimatedTimeRemaining.Type { get }
818824

825+
@frozen
819826
public enum EstimatedTimeRemaining : Sendable, Property {
820827

821828
public typealias Value = Duration

0 commit comments

Comments
 (0)