Waits for any of the elements in the specified array to receive a signal.
| C# | Visual Basic |
public static int WaitAny( WaitHandle[] waitHandles )
Public Shared Function WaitAny ( _ waitHandles As WaitHandle() _ ) As Integer
- waitHandles (array< WaitHandle >[]()[])
- A WaitHandle array containing the objects for which the current instance will wait.
The array index of the object that satisfied the wait.