You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, ServiceController WaitForStatus method polls every 250ms to check if the service has reached the desired status.
This is not optimal and also not very performant, particularly if the service takes less than 250ms to reach that status.
Apparently lost in the mists of time, there was a plan to use the WinAPI function NotifyServiceStatusChange to avoid polling and get instantly notified when the service reaches a specific status.
I'm opening this issue to prevent this potential improvement from getting lost again.
Currently, ServiceController WaitForStatus method polls every 250ms to check if the service has reached the desired status.
This is not optimal and also not very performant, particularly if the service takes less than 250ms to reach that status.
Apparently lost in the mists of time, there was a plan to use the WinAPI function NotifyServiceStatusChange to avoid polling and get instantly notified when the service reaches a specific status.
I'm opening this issue to prevent this potential improvement from getting lost again.
Props to @KalleOlaviNiemitalo for finding this.
The text was updated successfully, but these errors were encountered: