79661481

Date: 2025-06-11 06:29:34
Score: 1
Natty:
Report link

`Thread.Sleep()` blocks the current thread and should be avoided in most applications, especially UI (WinForms/WPF) or ASP.NET apps, as it can freeze the interface or waste server threads.

This code for sleep current thread for 10 second.

System.Threading.Thread.Sleep(10); 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mangesh Panchal