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

Function fumaEffect

packages/core/sdk/src/fuma-runtime.ts:200–207  ·  view source on GitHub ↗
(
  label: string,
  run: () => Promise<A>,
)

Source from the content-addressed store, hash-verified

198};
199
200export const fumaEffect = <A>(
201 label: string,
202 run: () => Promise<A>,
203): Effect.Effect<A, StorageFailure> =>
204 Effect.tryPromise({
205 try: run,
206 catch: (cause) => fumaFailureFromCause(label, cause),
207 });
208
209export const activeFumaDbRef = Context.Reference<FumaDb | null>("executor/ActiveFumaDb", {
210 defaultValue: () => null,

Callers 2

useFunction · 0.85

Calls 1

fumaFailureFromCauseFunction · 0.85

Tested by

no test coverage detected