2
0

Fix doc typo

This commit is contained in:
Jack Christensen
2019-01-19 14:49:26 -06:00
parent 903a7734c5
commit e97dbe1b22
+3 -4
View File
@@ -549,10 +549,9 @@ func (pgConn *PgConn) cancelRequest(ctx context.Context) error {
return nil
}
// WaitUntilReady waits until a previous context cancellation has been competed processed and the connection is ready
// for use. This is done automatically by all methods that need the connection to be ready for use. The only expected
// use for this method is for a connection pool to wait for a returned connection to be usable again before making it
// available.
// WaitUntilReady waits until a previous context cancellation has been completed and the connection is ready for use.
// This is done automatically by all methods that need the connection to be ready for use. The only expected use for
// this method is for a connection pool to wait for a returned connection to be usable again before making it available.
func (pgConn *PgConn) WaitUntilReady(ctx context.Context) error {
select {
case <-ctx.Done():