Last active
          August 12, 2018 18:21 
        
      - 
      
- 
        Save nishabe/339086130d3ee2f5e7cc84845fc9b56b to your computer and use it in GitHub Desktop. 
    OBJC: GCD: Creating a serial queue
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | dispatch_queue_t serialQueue = dispatch_queue_create(""imagesQueue"", DISPATCH_QUEUE_SERIAL); | |
| dispatch_async(serialQueue, ^{ | |
| // Perform long running process | |
| dispatch_async(dispatch_get_main_queue(), ^{ | |
| // Update the UI | |
| }); | |
| });" | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment