Thread.Sleep Method (Int32, Boolean)

Tungsten Suite

ThreadSleep Method (Int32, Boolean)

Blocks the calling thread for the specified time

Namespace:  W.Threading
Assembly:  Tungsten.Threading (in Tungsten.Threading.dll) Version: 2.0.1
Syntax
C#
public static void Sleep(
	int msDelay,
	bool useSpinWait
)

Parameters

msDelay
Type: SystemInt32
The number of milliseconds to block the thread
useSpinWait
Type: SystemBoolean
If True, a SpinWait.SpinUntil will be used instead of a call to Thread.Sleep (or Task.Delay). Note that SpinWait should only be used on multi-core/cpu machines.
See Also