Как немедленно принудительно отменить операцию NSO с AFNetworking?

Я использую AFNetworking в своем приложении и пытаюсь реализовать функцию «Нажмите, чтобы отменить». особенность в моем прогрессе HUD. У меня есть одноэлементный класс, который управляет всеми HTTP-запросами. Если прогресс HUD прослушивается, я звоню:

[[[HTTPRequestSingleton sharedClient] operationQueue] cancelAllOperations];

Но это не отменяет. операция, как мне это нужно. Я читаю наNSOperationQueue docs и наткнулся на это:

Canceling an operation object leaves the object in the queue but notifies the object that it should abort its task as quickly as possible. For currently executing operations, this means that the operation object’s work code must check the cancellation state, stop what it is doing, and mark itself as finished. For operations that are queued but not yet executing, the queue must still call the operation object’s start method so that it can processes the cancellation event and mark itself as finished.

И относительноcancelAllOperations метод:

This method sends a cancel message to all operations currently in the queue. Queued operations are cancelled before they begin executing. If an operation is already executing, it is up to that operation to recognize the cancellation and stop what it is doing.

Кажется, моя проблема связана с уже выполняющейся операцией, которую я хочу немедленно отменить. С AFNetworking, как я могу предупредить операцию, что она должна отменить и отбросить всю информацию о запросе?

Code used for operation

AFJSONRequestOperation *loginOperation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) {

    //operation was successful

    if (loginOperation.isCancelled)
    {
        //can't do this. variable 'loginOperation' is uninitialized when captured by block      
    }

} failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id JSON) {

    //operation failed

}];

Ответы на вопрос(2)

Ваш ответ на вопрос