Thread..::..Sleep Method (TimeSpan)
Suspends the current thread for the specified anout of time.
Implemented as a loop checking timeout each iteration.
Please note maximum 1e7 iterations
Namespace:
System.ThreadingAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static void Sleep( TimeSpan timeout )
<TemplateAttribute> _ Public Shared Sub Sleep ( _ timeout As TimeSpan _ )
[TemplateAttribute] public: static void Sleep( TimeSpan^ timeout )
Parameters
- timeout
- Type: System..::..TimeSpan
The amount of time for which the thread is suspended. Should be positive or -1. -1 works the same as 0 (not Infinite)