MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / afterCommit

Function afterCommit

packages/core/sdk/src/fuma-runtime.ts:108–115  ·  view source on GitHub ↗
(effect: Effect.Effect<void>)

Source from the content-addressed store, hash-verified

106);
107
108export const afterCommit = (effect: Effect.Effect<void>): Effect.Effect<void> =>
109 Effect.flatMap(Effect.service(pendingCommitHooksRef), (hooks) =>
110 hooks
111 ? Effect.sync(() => {
112 hooks.push(effect);
113 })
114 : effect.pipe(Effect.ignoreCause({ log: false })),
115 );
116
117class TransactionEffectFailure {
118 constructor(readonly error: unknown) {}

Callers 1

notifyIntegrationChangeFunction · 0.90

Calls 2

pushMethod · 0.80
syncMethod · 0.65

Tested by

no test coverage detected