[This is preliminary documentation and is subject to change.]
Waits until all Syncs in a collection have
been signalled.
| C# |
public static void Wait( IEnumerable<Sync> syncs )
- syncs (IEnumerable<(Of <(<'Sync>)>)>)
- The collection of Syncs to wait on. This can be any collection which implements IEnumerable{Sync} or an array of Syncs.
Any number of the Syncs may already have signalled. If all have
already signalled, this returns immediately. If any other thread is
waiting on any of the Syncs, an exception is generated.
| Exception | Condition |
|---|---|
| InvalidOperationException | Thrown if any of the Sync
states is either waiting or complete. |