Skip to content

Instantly share code, notes, and snippets.

@ppamorim
Created February 16, 2016 19:57
Show Gist options
  • Save ppamorim/845517fed6bec0fd41ff to your computer and use it in GitHub Desktop.
Save ppamorim/845517fed6bec0fd41ff to your computer and use it in GitHub Desktop.
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