Task.WaitAny Method (Task)
Waits for any of the provided Task objects to complete execution.
Assembly: mscorlib (in mscorlib.dll)
The following example demonstrates using WaitAny to wait for any task in a set of tasks to complete.
var t1 = Task.Factory.StartNew(() => DoOperation1());
var t2 = Task.Factory.StartNew(() => DoOperation2());
' Visual Basic
Dim t1 = Task.Factory.StartNew(Sub()
Dim t2 = Task.Factory.StartNew(Sub()
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.