Created
October 10, 2009 03:56
-
-
Save AlanQuatermain/206581 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
- (void) functionWhichAnnoyinglyBlocksExecution: (NSFileHandle *) annoyingFileHandle | |
{ | |
dispatch_async(dispatch_get_global_queue(0,0), ^{ | |
id result = [annoyingFileHandle someBlockingOp]; | |
dispatch_async(dispatch_get_main_queue(), ^{ | |
[myController displayResult: result]; | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment