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

Function hasEnded

packages/effect/src/sql/SqlClient.ts:607–614  ·  view source on GitHub ↗
(buffer: AfterCommitBuffer | undefined)

Source from the content-addressed store, hash-verified

605 * in their context after it ends.
606 */
607const hasEnded = (buffer: AfterCommitBuffer | undefined): boolean => {
608 for (; buffer !== undefined; buffer = buffer.parent) {
609 if (!buffer.open) {
610 return true
611 }
612 }
613 return false
614}
615
616const transactionEnded = Effect.suspend(() =>
617 Effect.fail(

Callers 4

transactionConnectionFunction · 0.85
makeAfterCommitFunction · 0.85
makeWithTransactionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected