ConditionLock
A Lock
with a built-in state variable.
final class ConditionLock<T> where T : Equatable
This class provides a convenience addition to Lock
: it provides the ability to wait until the state variable is set to a specific value to acquire the lock.