Completion block not being called. How to check validity?
- by HCHogan
I have this method which takes a block, but that block isn't always called. See the method:
- (void)updateWithCompletion:(void (^)(void))completion {
[MYObject myMethodWithCompletion:^(NSArray *array, NSError *error) {
if (error) {
NSLog(@"%s, ERROR not nil", __FUNCTION__);
completion();
return;
…