I'm using AFNetworking
AFHTTPClient
just for the example, but this question is about NSOperationQueue
in general.
The AFHTTPClient
manage an NSOperationQueue
for requests made by the client.
It also has a cancelAllOperations
method that iterate over the self.operationQueue.operations
and call [operation cancel]
for each one.
If I understand this right, it will cancel all the operations waiting in the queue - meaning the operation that didn't started yet, but what with the operations that are currently running? they won't be cancelled??