CompositeOperations icon indicating copy to clipboard operation
CompositeOperations copied to clipboard

Clarify deallocation semantics: NSOperationQueue vs @completion block

Open stanislaw opened this issue 10 years ago • 0 comments

CompositeOperations uses its own completion block which is run after NSOperation is finished (KVO about isFinished is sent). When working with NSOperationQueue this can lead to earlier deallocation of operation when we are in completion block:

operation.completion = ^(id result, id error) {
    // so far it is always fired but there is no strict policy about this known to the author
}

stanislaw avatar Feb 01 '16 09:02 stanislaw