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

Function tryPromiseService

apps/cloud/src/auth/errors.ts:205–209  ·  view source on GitHub ↗
(fn: () => Promise<A>)

Source from the content-addressed store, hash-verified

203
204/** Lift a Promise-returning function into Effect with a typed failure channel. */
205export const tryPromiseService = <A>(fn: () => Promise<A>): Effect.Effect<A, ServiceAdapterError> =>
206 Effect.tryPromise({
207 try: fn,
208 catch: (cause) => new ServiceAdapterError({ cause }),
209 });
210
211/**
212 * Service-boundary error wrapper. Logs the full Cause chain (drizzle

Callers 4

runFunction · 0.90
makeServiceFunction · 0.90
readFunction · 0.90
useFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected