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

Function onBatchEnd

packages/sql/pg/src/PgConnection.ts:2254–2258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2252 }
2253
2254 const onBatchEnd = (): void => {
2255 if (done || aborted) return
2256 if (pending !== undefined) deliver()
2257 else if (buffer.length >= streamPauseThreshold) setPaused(true)
2258 }
2259
2260 yield* Scope.addFinalizer(
2261 scope,

Callers

nothing calls this directly

Calls 2

setPausedFunction · 0.85
deliverFunction · 0.70

Tested by

no test coverage detected