This documentation says that operations
is deprecated with no hint of a replacement function:
Xcode lists a possible replacement as addBarrierBlock:
but with no documentation.
I have a dozen operations of class RenderOperation
and a single operation of class RenderCompleteOperation
that is dependent on all the RenderOperation
objects.
My problem is that if I call cancelAllOperations
, I still need my single RenderCompleteOperation
to run - and if it is still pending completion of its dependencies, than its main
method will never run.
So I need a way to cancel just the RenderOperation
objects and can't see how to do this without calling operations
.