(fn: (client: Autumn) => Promise<A>)
| 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* () { |
no outgoing calls
no test coverage detected