Home > Mobile >  Multiple network request loading problem
Multiple network request loading problem

Time:11-14

I use AFNetWork colleagues call five interface, a third interface can be time consuming and leads to the fourth and fifth until after the third interface success success, solutions for help have a great god

CodePudding user response:

Request in the child thread that can use the thread group when necessary

CodePudding user response:

If no dependencies between interface, that is, on the business logic for does not exist an interface must rely on another interface, change the manager to create the queue of AF to concurrent queue,

CodePudding user response:

1, see the corresponding dependencies interface;
2, look to whether wait for all interface request for data processing, if it is, use dispatch_group
  •  Tags:  
  • iOS
  • Related