I want to make 10 asynchronous http requests at once and only process the results when all have completed and in a single callback function. I also do not want to block any threads using WaitAll (it is my understanding that WaitAll blocks until all are complete). I think I want to make a custom IAsyncResult which will handle multiple calls. Am I on the right track? Are there any good resources or examples out there that describe handling this?
Share
I like Darin’s solution. But, if you want something more traditional, you can try this.
I would definitely use an array of wait handles and the WaitAll mechanism: