Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Avoid raising unnecessary ObjectDisposedException when accessing SemaphoreSlim object #277
Rather than raising unnecessary ObjectDisposedExceptions we can reflect on the SemaphoreSlim object and check if it is already disposed. Raising lots of unnecessary exceptions (as can happen here) is expensive and impacts performance. With this change we can avoid those unnecessary exceptions.