What makes a completion handler execute the block when your task of interest is complete?
问题 I have been asking and trying to understand how completion handlers work. Ive used quite a few and I've read many tutorials. i will post the one I use here, but I want to be able to create my own without using someone else's code as a reference. I understand this completion handler where this caller method: -(void)viewDidLoad{ [newSimpleCounter countToTenThousandAndReturnCompletionBLock:^(BOOL completed){ if(completed){ NSLog(@"Ten Thousands Counts Finished"); } }]; } and then in the called