MCPcopy Index your code
hub / github.com/brianc/node-postgres / cleanup

Function cleanup

packages/pg-native/lib/copy-stream.js:114–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112
113const consumeResults = function (pq, cb) {
114 const cleanup = function () {
115 pq.removeListener('readable', onReadable)
116 pq.stopReader()
117 }
118
119 const readError = function (message) {
120 cleanup()

Callers 2

readErrorFunction · 0.85
onReadableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected