Does anyone know how .NET handles a timeout on a call to Semaphore.WaitOne(timeout)?
I’d expect a TimeoutException, but the MSDN documentation doesn’t list this in the list of expected exceptions, and I can’t seem to find it documented anywhere.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The method will return
falseif it times out, andtrueif it returns a signal: