Task.WaitAny Method (Task, TimeSpan)
Waits for any of the provided Task objects to complete execution.
Assembly: mscorlib (in mscorlib.dll)
Return ValueType: System.Int32
The index of the completed task in the tasks array argument, or -1 if the timeout occurred.
The Task has been disposed.
The tasks argument is null.
timeout is a negative number other than -1 milliseconds, which represents an infinite time-out -or- timeout is greater than MaxValue.
The tasks argument contains a null element.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.