Is it safe to enumerate, via fast enumeration, through [NSOperationQueue operations]
? Like so:
for (NSOperation *op in [operationQueue operations]) {
// Do something with op
}
Since operations are asynchronous and executed on another thread, operations
could change at any time (including during the main thread's execution). Does fast enumeration protect against this, or should I copy
(and autorelease
) the operations array instead?