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

Function fromPromise

apps/cloud/scripts/backfill-workos-mirror.ts:71–72  ·  view source on GitHub ↗
(fn: () => Promise<A>)

Source from the content-addressed store, hash-verified

69
70// The script boundary: raw SDK / driver promises lifted once, here.
71const fromPromise = <A>(fn: () => Promise<A>) =>
72 Effect.tryPromise({ try: fn, catch: (cause) => cause });
73
74await Effect.runPromise(
75 backfillWorkOsMirror(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected