(msg: Pg.Notification)
| 622 | Stream.callback<string, SqlError>(Effect.fnUntraced(function*(queue) { |
| 623 | const client = yield* options.listenAcquirer |
| 624 | function onNotification(msg: Pg.Notification) { |
| 625 | if (msg.channel === channel && msg.payload) { |
| 626 | Queue.offerUnsafe(queue, msg.payload) |
| 627 | } |
| 628 | } |
| 629 | yield* Effect.addFinalizer(() => |
| 630 | Effect.promise(() => { |
| 631 | client.off("notification", onNotification) |
nothing calls this directly
no test coverage detected