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

Function fumaEffect

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

Source from the content-addressed store, hash-verified

79};
80
81export const fumaEffect = <A>(
82 label: string,
83 run: () => Promise<A>,
84): Effect.Effect<A, StorageFailure> =>
85 Effect.tryPromise({
86 try: run,
87 catch: (cause) => fumaFailureFromCause(label, cause),
88 });
89
90export const activeFumaDbRef = Context.Reference<FumaDb | null>("executor/ActiveFumaDb", {
91 defaultValue: () => null,

Callers 1

useFunction · 0.85

Calls 1

fumaFailureFromCauseFunction · 0.85

Tested by

no test coverage detected