Waits for any of the elements in the specified collection to receive a signal, using a 32-bit signed integer to measure the time interval.
- Parameters
-
wait_handles | A xtd::threading::wait_handle collection containing the objects for which the current instance will wait. This array cannot contain multiple references to the same object. |
milliseconds_timeout | The number of milliseconds to wait, or xtd::threading::timeout::infinite (-1) to wait indefinitely. |
- Returns
- The array index of the object that satisfied the wait, or xtd::threading::wait_handle::wait_timeout if no object satisfied the wait and a time interval equivalent to milliseconds_timeout has passed.
- Exceptions
-