From 0d20d1241e0232b6c6325711f90f005b7a11fd9d Mon Sep 17 00:00:00 2001 From: Lorenzo Paoliani Date: Mon, 11 Oct 2021 11:50:14 +0100 Subject: [PATCH] Fixes a typo in the docs I think this meant to say "until a notification is received" rather than "until a context is received". --- doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc.go b/doc.go index 51b0d9f4..222f9047 100644 --- a/doc.go +++ b/doc.go @@ -309,7 +309,7 @@ CopyFrom can be faster than an insert with as few as 5 rows. Listen and Notify pgx can listen to the PostgreSQL notification system with the `Conn.WaitForNotification` method. It blocks until a -context is received or the context is canceled. +notification is received or the context is canceled. _, err := conn.Exec(context.Background(), "listen channelname") if err != nil {