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

Function write

packages/platform/node-shared/benchmark/Socket.ts:98–103  ·  view source on GitHub ↗
(chunk: Buffer, _encoding, callback)

Source from the content-addressed store, hash-verified

96 const duplex: Duplex = new Duplex({
97 read() {},
98 write(chunk: Buffer, _encoding, callback) {
99 respond(chunk, (data) => {
100 duplex.push(data)
101 })
102 callback()
103 }
104 })
105 return duplex
106}

Callers

nothing calls this directly

Calls 9

resolveMethod · 0.80
pushMethod · 0.65
writeMethod · 0.65
sendMethod · 0.65
respondFunction · 0.50
callbackFunction · 0.50
onceFunction · 0.50
rejectFunction · 0.50
resolveFunction · 0.50

Tested by

no test coverage detected