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

Function nextWrite

cf/src/connection.js:256–261  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

254 }
255
256 function nextWrite(fn) {
257 const x = socket.write(chunk, fn)
258 nextWriteTimer !== null && clearImmediate(nextWriteTimer)
259 chunk = nextWriteTimer = null
260 return x
261 }
262
263 function connectTimedOut() {
264 errored(Errors.connection('CONNECT_TIMEOUT', options, socket))

Callers 1

writeFunction · 0.70

Calls 2

clearImmediateFunction · 0.90
writeMethod · 0.65

Tested by

no test coverage detected