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

Function ignorePromiseFailure

apps/local/src/executor.ts:134–145  ·  view source on GitHub ↗
(
  operation: LocalExecutorDisposeError["operation"],
  try_: () => Promise<unknown>,
)

Source from the content-addressed store, hash-verified

132 "Failed to open local SQLite data. Close other Executor processes and retry, or run with --log-level debug for details.";
133
134const ignorePromiseFailure = (
135 operation: LocalExecutorDisposeError["operation"],
136 try_: () => Promise<unknown>,
137) =>
138 Effect.runPromise(
139 Effect.ignore(
140 Effect.tryPromise({
141 try: try_,
142 catch: (cause) => new LocalExecutorDisposeError({ operation, cause }),
143 }),
144 ),
145 );
146
147const handleOrNull = (promise: ReturnType<typeof createExecutorHandle>) =>
148 Effect.runPromise(

Callers 2

createExecutorHandleFunction · 0.85
disposeCurrentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected