MCPcopy Create free account
hub / github.com/porsager/postgres / end

Function end

cf/polyfills.js:186–190  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

184 }
185
186 function end(data) {
187 return data
188 ? tcp.write(data, () => tcp.raw.close())
189 : tcp.raw.close()
190 }
191
192 function destroy() {
193 tcp.destroyed = true

Callers

nothing calls this directly

Calls 2

writeMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected