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

Function fumaEffect

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

Source from the content-addressed store, hash-verified

220};
221
222export const fumaEffect = <A>(
223 label: string,
224 run: () => Promise<A>,
225): Effect.Effect<A, StorageFailure> =>
226 Effect.tryPromise({
227 try: run,
228 catch: (cause) => fumaFailureFromCause(label, cause),
229 });
230
231export const activeFumaDbRef = Context.Reference<FumaDb | null>("executor/ActiveFumaDb", {
232 defaultValue: () => null,

Callers 2

useFunction · 0.85

Calls 1

fumaFailureFromCauseFunction · 0.85

Tested by

no test coverage detected