Search
Filters
Blog options
Close
RSS

Blog posts of '2016' 'February'

Blog options
Using dispatch_once to ensure code only gets run one time

Using dispatch_once to ensure code only gets run one time

In this brief tutorial we'll see how to use Grand Central Dispatches dispatch_once to ensure that a block of code only gets run one time. This is helpful in situations where you only want to instantiate a value one time throughout the life-cycle of your application.

details