ios - RESTKIT : How to abort unfinished network calls if new request is sent -



ios - RESTKIT : How to abort unfinished network calls if new request is sent -

is there way abort unfinished network calls haven't returned responses yet when new network request called?

currently request getting added in nsoperationqueue. want have 1 request @ time.

using object manager, phone call cancelallobjectrequestoperationswithmethod:matchingpathpattern: - though mean need know patterns want cancel (or potential patterns).

alternatively can of operations on queue , cancel them...

usually cancel 1 request when new 1 made pattern alternative suffices.

ios restkit

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -