NamedSemaphoreWaitOne(TimeSpan) Method

Blocks the current thread until the current instance receives a signal, using a TimeSpan to specify the time interval.

Definition

Namespace: Gemstone.Threading
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.190 -- Release Build+4f7f1aafd7d11323546b3aa1b5f0d7a271c76461
public override bool WaitOne(
	TimeSpan timeout
)

Parameters

timeout  TimeSpan
A TimeSpan that represents the number of milliseconds to wait, or a TimeSpan that represents -1 milliseconds to wait indefinitely.

Return Value

Boolean
true if the current instance receives a signal; otherwise, false.

See Also