Does the AFHTTPRequestOperationManager execute query operations?

If I have a manager created and instance-varred, and I do:

AFHTTPRequestOperation *operation = [self.manager HTTPRequestOperationWithRequest:request success:mySuccessBlock failure:myFailureBlock];

[operation start];

Will this be executed on the control operation? It seems that I can not find anything that guarantees that it will use one of the methods GET, POST, PUT, which, I believe, will add the operation to the queue.

I see a matte answer here, but I want to be sure anyway.

How to send a request with AFNetworking 2 in a strict sequential order?

What I'm trying to do is queue requests and make them work synchronously by setting

[self.manager.operationQueue setMaxConcurrentOperationCount:1]; 
+4
source share
1 answer

, :

AFHTTPRequestOperation *operation = [self.manager HTTPRequestOperationWithRequest:request success:mySuccessBlock failure:myFailureBlock];

[queue addOperation:operation];

, :

NSOperationQueue *queue = [[NSOperationQueue alloc] init];
queue.name = @"com.domain.app.networkQueue";
queue.maxConcurrentOperationCount = 1;

, (, [operation start]), - .

, ( maxConcurrentOperationCount, ):

[self.manager.operationQueue addOperation:operation];

. , AFNetworking manager . manager.operationQueue , .

: . , , , , UX. , (, ), , , , .

+8

All Articles