Home  /  Questions  /  Question

50   50
Sep 17, 2013

Does themain thread wait for all tasks to complete if Task.WaitAll is used?

 I am working on an ASP.NET app that fetches data from web services. I am planning to use the Task Parallel Library.

My question is this: if I call the services using parallel Tasks does the main thread wait for all calls to complete with Task.WaitAll?
If not is there any alternative way to achieve this?