What is the difference between Task.WaitAll()
and Task.WhenAll()
from the Async CTP ?
Can you provide some sample code to illustrate the different
As an example of the difference -- if you have a task the does something with the UI thread (e.g. a task that represents an animation in a Storyboard) if you Task.WaitAll()
then the UI thread is blocked and the UI is never updated. if you use await Task.WhenAll()
then the UI thread is not blocked, and the UI will be updated.