File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -208,15 +208,15 @@ internal func pollBlock(
208208 precondition ( pollInterval > . seconds( 0 ) )
209209 let iterations = Int ( exactly: ( timeoutInterval / pollInterval) . rounded ( . up) ) ?? Int . max
210210
211- for i in 0 ..< iterations {
211+ for iteration in 0 ..< iterations {
212212 do {
213213 if case . finished( let result) = try await expression ( ) {
214214 return . completed( result)
215215 }
216216 } catch {
217217 return . errorThrown( error)
218218 }
219- if i == ( iterations - 1 ) {
219+ if iteration == ( iterations - 1 ) {
220220 break
221221 }
222222 do {
Original file line number Diff line number Diff line change @@ -176,15 +176,15 @@ internal func pollBlock(
176176 precondition ( timeoutInterval > interval)
177177 let iterations = Int ( exactly: ( timeoutInterval / pollInterval) . rounded ( . up) ) ?? Int . max
178178
179- for i in 0 ..< iterations {
179+ for iteration in 0 ..< iterations {
180180 do {
181181 if case . finished( let result) = try expression ( ) {
182182 return . completed( result)
183183 }
184184 } catch {
185185 return . errorThrown( error)
186186 }
187- if i == ( iterations - 1 ) {
187+ if iteration == ( iterations - 1 ) {
188188 break
189189 }
190190 RunLoop . main. run ( until: Date ( timeIntervalSinceNow: pollInterval. timeInterval) )
You can’t perform that action at this time.
0 commit comments