File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -203,15 +203,15 @@ internal func pollBlock(
203203 precondition ( pollInterval > . seconds( 0 ) )
204204 let iterations = Int ( exactly: ( timeoutInterval / pollInterval) . rounded ( . up) ) ?? Int . max
205205
206- for i in 0 ..< iterations {
206+ for iteration in 0 ..< iterations {
207207 do {
208208 if case . finished( let result) = try await expression ( ) {
209209 return . completed( result)
210210 }
211211 } catch {
212212 return . errorThrown( error)
213213 }
214- if i == ( iterations - 1 ) {
214+ if iteration == ( iterations - 1 ) {
215215 break
216216 }
217217 do {
Original file line number Diff line number Diff line change @@ -175,15 +175,15 @@ internal func pollBlock(
175175 precondition ( timeoutInterval > interval)
176176 let iterations = Int ( exactly: ( timeoutInterval / pollInterval) . rounded ( . up) ) ?? Int . max
177177
178- for i in 0 ..< iterations {
178+ for iteration in 0 ..< iterations {
179179 do {
180180 if case . finished( let result) = try expression ( ) {
181181 return . completed( result)
182182 }
183183 } catch {
184184 return . errorThrown( error)
185185 }
186- if i == ( iterations - 1 ) {
186+ if iteration == ( iterations - 1 ) {
187187 break
188188 }
189189 RunLoop . main. run ( until: Date ( timeIntervalSinceNow: pollInterval. timeInterval) )
You can’t perform that action at this time.
0 commit comments