Fix doc typo
This commit is contained in:
+3
-4
@@ -549,10 +549,9 @@ func (pgConn *PgConn) cancelRequest(ctx context.Context) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// WaitUntilReady waits until a previous context cancellation has been competed processed and the connection is ready
|
// WaitUntilReady waits until a previous context cancellation has been completed and the connection is ready for use.
|
||||||
// for use. This is done automatically by all methods that need the connection to be ready for use. The only expected
|
// This is done automatically by all methods that need the connection to be ready for use. The only expected use for
|
||||||
// use for this method is for a connection pool to wait for a returned connection to be usable again before making it
|
// this method is for a connection pool to wait for a returned connection to be usable again before making it available.
|
||||||
// available.
|
|
||||||
func (pgConn *PgConn) WaitUntilReady(ctx context.Context) error {
|
func (pgConn *PgConn) WaitUntilReady(ctx context.Context) error {
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
|
|||||||
Reference in New Issue
Block a user