Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
resolve
Method · 0.80
push
Method · 0.65
write
Method · 0.65
send
Method · 0.65
respond
Function · 0.50
callback
Function · 0.50
once
Function · 0.50
reject
Function · 0.50
resolve
Function · 0.50
Tested by
no test coverage detected