MCPcopy Create free account
hub / github.com/Effect-TS/effect / write

Function write

packages/sql/pg/test/PgPool.in-process.test.ts:68–75  ·  view source on GitHub ↗
(_chunk: Buffer, _encoding, callback)

Source from the content-addressed store, hash-verified

66 const socket = new Duplex({
67 read() {},
68 write(_chunk: Buffer, _encoding, callback) {
69 if (startup) {
70 startup = false
71 if (attempt === 2) backgroundStarted = true
72 else queueMicrotask(() => socket.push(ready))
73 }
74 callback()
75 }
76 })
77 return socket
78 }

Callers

nothing calls this directly

Calls 15

offerUnsafeMethod · 0.80
fromMethod · 0.80
sliceMethod · 0.80
completedFunction · 0.70
failedFunction · 0.70
backendMessageFunction · 0.70
pushMethod · 0.65
openUnsafeMethod · 0.65
toStringMethod · 0.65
updateMethod · 0.65
callbackFunction · 0.50
syncMethod · 0.45

Tested by

no test coverage detected