Created
November 28, 2011 10:16
-
-
Save aquarius/1399872 to your computer and use it in GitHub Desktop.
What is the best way to get notified when all callbacks have returned?
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
for (myObject in objects) { | |
[myObject doWithCallback: ^(BOOL success){ | |
// | |
}]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alternative (probably more efficient):