I've gone through the iBook from Apple, and couldn't find any definition of it:
Can someone explain the structure of dispatch_after
?
dispatch_after(<#when: dispatch_time_t#>, <#queue: dispatch_queue_t?#>, <#block: dispatch_block_t?#>)
grand-central-dispatchobjective cswift
I've gone through the iBook from Apple, and couldn't find any definition of it:
Can someone explain the structure of dispatch_after
?
dispatch_after(<#when: dispatch_time_t#>, <#queue: dispatch_queue_t?#>, <#block: dispatch_block_t?#>)
Best Answer
I use
dispatch_after
so often that I wrote a top-level utility function to make the syntax simpler:And now you can talk like this:
Wow, a language where you can improve the language. What could be better?
Update for Swift 3, Xcode 8 Seed 6
Seems almost not worth bothering with, now that they've improved the calling syntax: