Skip to content

Commit 86e1d80

Browse files
author
Shaun Hubbard
committed
added block comment warning that listener is responsible for managing connection
1 parent b4ca67f commit 86e1d80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/PostgreSQL/Connection/PostgreSQLConnection+NotifyAndListen.swift

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import Async
22

33
extension PostgreSQLConnection {
4+
/// Note: after calling `listen'` on a connection, it can no longer handle other database operations. Do not try to send other SQL commands through this connection afterwards.
5+
/// IAlso, notifications will only be sent for as long as this connection remains open; you are responsible for opening a new connection to listen on when this one closes.
46
public func listen(
57
_ channelName: String,
68
handler: @escaping (String) throws -> ()

0 commit comments

Comments
 (0)