Enum PauseMethod
- Namespace
- NetAutoGUI
- Assembly
- NetAutoGUI.dll
public enum PauseMethod
Fields
Sleep = 0
Use Thread.Sleep(), which is CPU-friendly; however, it may cause dead-lock when being used in multiple-thread context, and async methods.
SpinWait = 1
Use SpinWait, which causes high CPU usage; however, it's fool-proof when being used in multiple-thread context, and async methods. It's the default value. Warning: Avoid using it for waiting too long.