polish the func comment

This commit is contained in:
iamqizhao
2015-08-03 11:19:25 -07:00
parent 14702f8b6a
commit 494b40089f

View File

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