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

Function fumaEffect

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

Source from the content-addressed store, hash-verified

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

Callers 2

useFunction · 0.85

Calls 1

fumaFailureFromCauseFunction · 0.85

Tested by

no test coverage detected