[This is preliminary documentation and is subject to change.]
Waits until all Syncs in a collection have
been signalled.
Declaration Syntax
C# |
public static void Wait( IEnumerable<Sync> syncs )
Parameters
- 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.
Remarks
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.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown if any of the Sync
states is either waiting or complete. |