-
-
Save ppamorim/845517fed6bec0fd41ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func executeObjectTest() { | |
let object : Object = Object() | |
object.something = "hi" | |
object.anything = "I am happy" | |
self.addObject(object) | |
let delay = 1 * Double(NSEC_PER_SEC) //happens the same with this too, when reach 100-150 items | |
let time = dispatch_time(DISPATCH_TIME_NOW, Int64(delay)) | |
dispatch_after(time, dispatch_get_main_queue()) { | |
self.count++ //not used here | |
self.executeObjectTest() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment