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

Function fromPromise

apps/cloud/scripts/drain-workos-events.ts:56–57  ·  view source on GitHub ↗
(fn: () => Promise<A>)

Source from the content-addressed store, hash-verified

54// 404 is the deterministic "gone" the replay acts on; every other failure
55// fails the pass, as in the Worker (`src/auth/workos-events-sync.ts`).
56const fromPromise = <A>(fn: () => Promise<A>) =>
57 Effect.tryPromise({ try: fn, catch: (cause) => cause });
58
59const isNotFound = (cause: unknown): boolean =>
60 typeof cause === "object" &&

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected