mirror of https://github.com/jackc/pgx.git
Fixes a typo in the docs
I think this meant to say "until a notification is received" rather than "until a context is received".pull/1103/head
parent
3599f64629
commit
0d20d1241e
2
doc.go
2
doc.go
|
@ -309,7 +309,7 @@ CopyFrom can be faster than an insert with as few as 5 rows.
|
||||||
Listen and Notify
|
Listen and Notify
|
||||||
|
|
||||||
pgx can listen to the PostgreSQL notification system with the `Conn.WaitForNotification` method. It blocks until a
|
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")
|
_, err := conn.Exec(context.Background(), "listen channelname")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue