I'm using AFNetworking with setting it's built-in operationQueue's maxConcurrentOperationCount value to 1 (Basically I want to dispatch requests serially).
I wonder if a new request will be dequeued from the operation queue before ongoing request's completion block finishes. Will a new request start before calling the completion queue, or will it wait for completion block to finish.
Thanks
completionBlockexecutes as soon as the operation is in its finished state (isFinished == YES). Since an operation queue starts the next operation as soon as the last one finishes, yes—the new operation will start as thecompletionBlockof the previous one is executing. However, you should not rely on any exact timing with any of that. - matttmaxConcurrentOperationCount =1, I think I can safely assume that previous requirement will hold. Could you verify my hypothesis? - manuyavuz