polish the func comment

This commit is contained in:
iamqizhao
2015-08-03 11:19:25 -07:00
committed by yangzhouhan
parent 3878d99912
commit b8ef5b44d2

View File

@ -227,8 +227,8 @@ func (cc *ClientConn) State() ConnectivityState {
return cc.state
}
// WaitForStateChange returns true when the state changes to something other than the
// sourceState and false if timeout fires.
// WaitForStateChange blocks until the state changes to something other than the sourceState
// or timeout fires. It returns false if timeout fires and true otherwise.
func (cc *ClientConn) WaitForStateChange(timeout time.Duration, sourceState ConnectivityState) bool {
start := time.Now()
cc.mu.Lock()