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

Function afterCommit

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

Source from the content-addressed store, hash-verified

250);
251
252export const afterCommit = (effect: Effect.Effect<void>): Effect.Effect<void> =>
253 Effect.flatMap(Effect.service(pendingCommitHooksRef), (hooks) =>
254 hooks
255 ? Effect.sync(() => {
256 hooks.push({ _tag: "Observer", effect });
257 })
258 : effect.pipe(Effect.ignoreCause({ log: false })),
259 );
260
261/**
262 * 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