public bool WaitForKeeperState()

in client/Apache.ShenYu.Client/Utils/Zookeeper/ZookeeperClient.cs [78:92]


        public bool WaitForKeeperState(Event.KeeperState states, TimeSpan timeout)
        {
            var stillWaiting = true;
            while (_currentState != states)
            {
                if (!stillWaiting)
                {
                    return false;
                }

                stillWaiting = _stateChangedCondition.WaitOne(timeout);
            }

            return true;
        }