Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/porsager/postgres
/ readFirst
Function
readFirst
cf/polyfills.js:208–211 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
206
}
207
208
async
function
readFirst() {
209
const
{ value } =
await
tcp.reader.read()
210
tcp.emit(
'data'
, Buffer.from(value))
211
}
212
213
function
error(err) {
214
tcp.emit(
'error'
, err)
Callers
1
connect
Function · 0.85
Calls
1
read
Method · 0.65
Tested by
no test coverage detected