[This is preliminary documentation and is subject to change.]
Declaration Syntax
C# |
public Object Wait()
Return Value
The object passed from the signalling thread.
Remarks
If this Sync has already been signalled, this returns
immediately. If another thread is already waiting on this Sync, an
exception is generated. There is no timeout - the calling thread will wait
indefinitely for a signal.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown if the Sync state is
either waiting or complete. |