https://learn.microsoft.com/en-us/dotnet/api/system.threading.waithandle.waitone?view=netframework-4.8.1&redirectedfrom=MSDN
WaitHandle.WaitOne Method (System.Threading) | Microsoft Learn
Blocks the current thread until the current WaitHandle receives a signal.
methodsystemthreadingmicrosoftlearn