ASIHTTPRequest inherits from Nsoperation so that multiple requests can be placed in one queue, making it easier to manage multiple requests
ASIHTTPRequest *request1 = [[ASIHTTPRequest alloc]init];
ASIHTTPRequest *request2 = [[ASIHTTPRequest alloc]init];
ASIHTTPRequest *request3 = [[ASIHTTPRequest alloc]init];
Nsoperationqueue *queen = [[Nsoperationqueue alloc]init];
[Queen Addoperation:request1]; // Benefit 1: Once the request is added to the queue, it will automatically start executing without the Startasynchronous method.
[Queen Addoperation:request2];
[Queen Addoperation:request3];
Benefit 2: Batch management can be achieved
[Queen Setsuspended:yes]; //Pause at the same time
[Queen Setmaxconcurrentoperationcount:1]; //Set maximum concurrency, concurrency is 1, meaning request1 execution is done, automatic execution of Request2
[Queen Cancelalloperations]; //Cancel at the same time
// Benefit 3: Add dependency
[Request2 Adddependency:request1]; Request1 execution is done before Request2 is executed.
[Request3 Adddependency:request2]; Request2 execution is done before Request3 is executed.
IOS asi--Managing multiple requests