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

Function use

apps/cloud/src/extensions/billing/service.ts:62–66  ·  view source on GitHub ↗
(fn: (client: Autumn) => Promise<A>)

Source from the content-addressed store, hash-verified

60 });
61
62 const use = <A>(fn: (client: Autumn) => Promise<A>) =>
63 Effect.tryPromise({
64 try: () => fn(client),
65 catch: (cause) => new AutumnError({ message: "Autumn SDK request failed", cause }),
66 }).pipe(Effect.withSpan(`autumn.${fn.name ?? "use"}`));
67
68 const trackExecution = (organizationId: string) =>
69 Effect.gen(function* () {

Callers 2

trackExecutionFunction · 0.70
checkExecutionBalanceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected