Blocks the capture (storage) of objects that you reference from the outside.
the completion of the block that will save the operation will be saved, hence the save cycle.
The best thing to do is create a weak link to the object and pass this instead
AFHTTPRequestOperation * __weak theOperation = operation operation.completionBlock = ^{ if (theOperation) { return; } };
Weak links are safe at runtime, so if the operation was canceled, you just send the message to zero.
source share