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

Function afterCommit

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

Source from the content-addressed store, hash-verified

255);
256
257export const afterCommit = (effect: Effect.Effect<void>): Effect.Effect<void> =>
258 Effect.flatMap(Effect.service(pendingCommitHooksRef), (hooks) =>
259 hooks
260 ? Effect.sync(() => {
261 hooks.push({ _tag: "Observer", effect });
262 })
263 : effect.pipe(Effect.ignoreCause({ log: false })),
264 );
265
266/**
267 * Run a required external finalizer after the outermost database commit.

Callers 4

notifyIntegrationChangeFunction · 0.90
connectionsCreateFunction · 0.90
createExecutorFunction · 0.90
removeClientFunction · 0.90

Calls 2

pushMethod · 0.80
syncMethod · 0.65

Tested by

no test coverage detected