How can I make hundreds of async calls in Angular2 and update view accordingly?
<p>I want to perform hundreds of async HTTP Post requests (creating a new resource) in Angular 2 in a simple for loop and update an internal counter that is incremented by one as soon as one HTTP Post request successfully returns. I use rxjs Observables for handling the response from the backend.</p>

<p>However, if I do that I can get into race conditions if two responses arrive simultaneously and are about to update the internal counter at the same time. What is a proper solution in Angular2 and TypeScript for that?</p>