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

Function nextWrite

cjs/src/connection.js:254–259  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

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

Callers 1

writeFunction · 0.70

Calls 2

writeMethod · 0.65
clearImmediateFunction · 0.50

Tested by

no test coverage detected