@@ -20,15 +20,15 @@ extension ProgressManager {
20
20
}
21
21
22
22
//MARK: Helper Methods for Updating Dirty Path
23
- internal func getUpdatedIntSummary ( property: MetatypeWrapper < Int , Int > ) -> Int {
23
+ internal func updatedIntSummary ( property: MetatypeWrapper < Int , Int > ) -> Int {
24
24
// Collect information from state
25
25
let updateInfo = state. withLock { state in
26
26
state. getIntSummaryUpdateInfo ( property: property)
27
27
}
28
28
29
29
// Get updated summary for each dirty child
30
30
let updatedSummaries = updateInfo. dirtyChildren. map { ( index, child) in
31
- State . IntSummaryUpdate ( index: index, updatedSummary: child. getUpdatedIntSummary ( property: property) )
31
+ State . IntSummaryUpdate ( index: index, updatedSummary: child. updatedIntSummary ( property: property) )
32
32
}
33
33
34
34
// Consolidate updated values
@@ -37,15 +37,15 @@ extension ProgressManager {
37
37
}
38
38
}
39
39
40
- internal func getUpdatedUInt64Summary ( property: MetatypeWrapper < UInt64 , UInt64 > ) -> UInt64 {
40
+ internal func updatedUInt64Summary ( property: MetatypeWrapper < UInt64 , UInt64 > ) -> UInt64 {
41
41
// Collect information from state
42
42
let updateInfo = state. withLock { state in
43
43
state. getUInt64SummaryUpdateInfo ( property: property)
44
44
}
45
45
46
46
// Get updated summary for each dirty child
47
47
let updatedSummaries = updateInfo. dirtyChildren. map { ( index, child) in
48
- State . UInt64SummaryUpdate ( index: index, updatedSummary: child. getUpdatedUInt64Summary ( property: property) )
48
+ State . UInt64SummaryUpdate ( index: index, updatedSummary: child. updatedUInt64Summary ( property: property) )
49
49
}
50
50
51
51
// Consolidate updated values
@@ -54,15 +54,15 @@ extension ProgressManager {
54
54
}
55
55
}
56
56
57
- internal func getUpdatedDoubleSummary ( property: MetatypeWrapper < Double , Double > ) -> Double {
57
+ internal func updatedDoubleSummary ( property: MetatypeWrapper < Double , Double > ) -> Double {
58
58
// Collect information from state
59
59
let updateInfo = state. withLock { state in
60
60
state. getDoubleSummaryUpdateInfo ( property: property)
61
61
}
62
62
63
63
// Get updated summary for each dirty child
64
64
let updatedSummaries = updateInfo. dirtyChildren. map { ( index, child) in
65
- State . DoubleSummaryUpdate ( index: index, updatedSummary: child. getUpdatedDoubleSummary ( property: property) )
65
+ State . DoubleSummaryUpdate ( index: index, updatedSummary: child. updatedDoubleSummary ( property: property) )
66
66
}
67
67
68
68
// Consolidate updated values
@@ -71,15 +71,15 @@ extension ProgressManager {
71
71
}
72
72
}
73
73
74
- internal func getUpdatedStringSummary ( property: MetatypeWrapper < String ? , [ String ? ] > ) -> [ String ? ] {
74
+ internal func updatedStringSummary ( property: MetatypeWrapper < String ? , [ String ? ] > ) -> [ String ? ] {
75
75
// Collect information from state
76
76
let updateInfo = state. withLock { state in
77
77
state. getStringSummaryUpdateInfo ( property: property)
78
78
}
79
79
80
80
// Get updated summary for each dirty child
81
81
let updatedSummaries = updateInfo. dirtyChildren. map { ( index, child) in
82
- State . StringSummaryUpdate ( index: index, updatedSummary: child. getUpdatedStringSummary ( property: property) )
82
+ State . StringSummaryUpdate ( index: index, updatedSummary: child. updatedStringSummary ( property: property) )
83
83
}
84
84
85
85
// Consolidate updated values
@@ -88,15 +88,15 @@ extension ProgressManager {
88
88
}
89
89
}
90
90
91
- internal func getUpdatedURLSummary ( property: MetatypeWrapper < URL ? , [ URL ? ] > ) -> [ URL ? ] {
91
+ internal func updatedURLSummary ( property: MetatypeWrapper < URL ? , [ URL ? ] > ) -> [ URL ? ] {
92
92
// Collect information from state
93
93
let updateInfo = state. withLock { state in
94
94
state. getURLSummaryUpdateInfo ( property: property)
95
95
}
96
96
97
97
// Get updated summary for each dirty child
98
98
let updatedSummaries = updateInfo. dirtyChildren. map { ( index, child) in
99
- State . URLSummaryUpdate ( index: index, updatedSummary: child. getUpdatedURLSummary ( property: property) )
99
+ State . URLSummaryUpdate ( index: index, updatedSummary: child. updatedURLSummary ( property: property) )
100
100
}
101
101
102
102
// Consolidate updated values
@@ -105,15 +105,15 @@ extension ProgressManager {
105
105
}
106
106
}
107
107
108
- internal func getUpdatedUInt64ArraySummary ( property: MetatypeWrapper < UInt64 , [ UInt64 ] > ) -> [ UInt64 ] {
108
+ internal func updatedUInt64ArraySummary ( property: MetatypeWrapper < UInt64 , [ UInt64 ] > ) -> [ UInt64 ] {
109
109
// Collect information from state
110
110
let updateInfo = state. withLock { state in
111
111
state. getUInt64ArraySummaryUpdateInfo ( property: property)
112
112
}
113
113
114
114
// Get updated summary for each dirty child
115
115
let updatedSummaries = updateInfo. dirtyChildren. map { ( index, child) in
116
- State . UInt64ArraySummaryUpdate ( index: index, updatedSummary: child. getUpdatedUInt64ArraySummary ( property: property) )
116
+ State . UInt64ArraySummaryUpdate ( index: index, updatedSummary: child. updatedUInt64ArraySummary ( property: property) )
117
117
}
118
118
119
119
// Consolidate updated values
@@ -122,15 +122,15 @@ extension ProgressManager {
122
122
}
123
123
}
124
124
125
- internal func getUpdatedDurationSummary ( property: MetatypeWrapper < Duration , Duration > ) -> Duration {
125
+ internal func updatedDurationSummary ( property: MetatypeWrapper < Duration , Duration > ) -> Duration {
126
126
// Collect information from state
127
127
let updateInfo = state. withLock { state in
128
128
state. getDurationSummaryUpdateInfo ( property: property)
129
129
}
130
130
131
131
// Get updated summary for each dirty child
132
132
let updatedSummaries = updateInfo. dirtyChildren. map { ( index, child) in
133
- State . DurationSummaryUpdate ( index: index, updatedSummary: child. getUpdatedDurationSummary ( property: property) )
133
+ State . DurationSummaryUpdate ( index: index, updatedSummary: child. updatedDurationSummary ( property: property) )
134
134
}
135
135
136
136
// Consolidate updated values
@@ -139,15 +139,15 @@ extension ProgressManager {
139
139
}
140
140
}
141
141
142
- internal func getUpdatedFileCount ( type: CountType ) -> Int {
142
+ internal func updatedFileCount ( type: CountType ) -> Int {
143
143
// Collect information from state
144
144
let updateInfo = state. withLock { state in
145
145
state. getFileCountUpdateInfo ( type: type)
146
146
}
147
147
148
148
// Get updated summary for each dirty child
149
149
let updatedSummaries = updateInfo. dirtyChildren. map { ( index, child) in
150
- State . FileCountUpdate ( index: index, updatedSummary: child. getUpdatedFileCount ( type: type) )
150
+ State . FileCountUpdate ( index: index, updatedSummary: child. updatedFileCount ( type: type) )
151
151
}
152
152
153
153
// Consolidate updated values
@@ -156,15 +156,15 @@ extension ProgressManager {
156
156
}
157
157
}
158
158
159
- internal func getUpdatedByteCount ( type: CountType ) -> UInt64 {
159
+ internal func updatedByteCount ( type: CountType ) -> UInt64 {
160
160
// Collect information from state
161
161
let updateInfo = state. withLock { state in
162
162
state. getByteCountUpdateInfo ( type: type)
163
163
}
164
164
165
165
// Get updated summary for each dirty child
166
166
let updatedSummaries = updateInfo. dirtyChildren. map { ( index, child) in
167
- State . ByteCountUpdate ( index: index, updatedSummary: child. getUpdatedByteCount ( type: type) )
167
+ State . ByteCountUpdate ( index: index, updatedSummary: child. updatedByteCount ( type: type) )
168
168
}
169
169
170
170
// Consolidate updated values
@@ -173,32 +173,32 @@ extension ProgressManager {
173
173
}
174
174
}
175
175
176
- internal func getUpdatedThroughput ( ) -> [ UInt64 ] {
176
+ internal func updatedThroughput ( ) -> [ UInt64 ] {
177
177
// Collect information from state
178
178
let updateInfo = state. withLock { state in
179
179
state. getThroughputUpdateInfo ( )
180
180
}
181
181
182
182
// Get updated summary for each dirty child
183
183
let updatedSummaries = updateInfo. dirtyChildren. map { ( index, child) in
184
- State . ThroughputUpdate ( index: index, updatedSummary: child. getUpdatedThroughput ( ) )
184
+ State . ThroughputUpdate ( index: index, updatedSummary: child. updatedThroughput ( ) )
185
185
}
186
186
187
187
// Consolidate updated values
188
188
return state. withLock { state in
189
- state. getUpdatedThroughput ( updateInfo, updatedSummaries)
189
+ state. updatedThroughput ( updateInfo, updatedSummaries)
190
190
}
191
191
}
192
192
193
- internal func getUpdatedEstimatedTimeRemaining ( ) -> Duration {
193
+ internal func updatedEstimatedTimeRemaining ( ) -> Duration {
194
194
// Collect information from state
195
195
let updateInfo = state. withLock { state in
196
196
state. getEstimatedTimeRemainingUpdateInfo ( )
197
197
}
198
198
199
199
// Get updated summary for each dirty child
200
200
let updatedSummaries = updateInfo. dirtyChildren. map { ( index, child) in
201
- State . EstimatedTimeRemainingUpdate ( index: index, updatedSummary: child. getUpdatedEstimatedTimeRemaining ( ) )
201
+ State . EstimatedTimeRemainingUpdate ( index: index, updatedSummary: child. updatedEstimatedTimeRemaining ( ) )
202
202
}
203
203
204
204
// Consolidate updated values
0 commit comments