Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello All,
Can any one please help me on this?

I am using angular.js with C# .

Now i am sending Asynchronous multiple request with $q.all() function, now i am getting result when all resolved. But i want data from response which is resolved & so on.

What I have tried:

var combineResult = $q.all([
]);
Posted
Updated 29-Nov-18 20:25pm
Comments
ZurdoDev 29-Nov-18 15:29pm    
What!?

1 solution

You don't get to choose the order with all. You could chain them, resolving one before staring others. But the idea in parallel processing is that you only care about final dataset. If you really want to both have parallel processing and manage data as it comes in, write a series of requests each with its own handler (can be the same function ofcourse).

Async requests will return immediately and go to the next request. Essentially, you will within milliseconds send all your requests and each will handle the data as it arrives.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900