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

Function afterCommit

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

Source from the content-addressed store, hash-verified

225);
226
227export const afterCommit = (effect: Effect.Effect<void>): Effect.Effect<void> =>
228 Effect.flatMap(Effect.service(pendingCommitHooksRef), (hooks) =>
229 hooks
230 ? Effect.sync(() => {
231 hooks.push(effect);
232 })
233 : effect.pipe(Effect.ignoreCause({ log: false })),
234 );
235
236class TransactionEffectFailure {
237 constructor(readonly error: unknown) {}

Callers 3

notifyIntegrationChangeFunction · 0.90
createExecutorFunction · 0.90
removeClientFunction · 0.90

Calls 2

pushMethod · 0.80
syncMethod · 0.65

Tested by

no test coverage detected