Replace C-style for loop with Swift-style for-in loop
This commit is contained in:
parent
61cbebeef0
commit
4dccf08bfd
|
|
@ -93,7 +93,7 @@ extension RxTest {
|
|||
func tearDownActions() {
|
||||
#if TRACE_RESOURCES
|
||||
// give 5 sec to clean up resources
|
||||
for var i = 0; i < 10; ++i {
|
||||
for i in 0..<10 {
|
||||
if self.startResourceCount < resourceCount {
|
||||
// main schedulers need to finish work
|
||||
NSRunLoop.currentRunLoop().runMode(NSDefaultRunLoopMode, beforeDate: NSDate(timeIntervalSinceNow: 0.05))
|
||||
|
|
|
|||
Loading…
Reference in New Issue