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

Function nextWrite

deno/src/connection.js:257–262  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

255 }
256
257 function nextWrite(fn) {
258 const x = socket.write(chunk, fn)
259 nextWriteTimer !== null && clearImmediate(nextWriteTimer)
260 chunk = nextWriteTimer = null
261 return x
262 }
263
264 function connectTimedOut() {
265 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