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

Function ignorePromiseFailure

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

Source from the content-addressed store, hash-verified

113 "Failed to open local SQLite data. Close other Executor processes and retry, or run with --log-level debug for details.";
114
115const ignorePromiseFailure = (
116 operation: LocalExecutorDisposeError["operation"],
117 try_: () => Promise<unknown>,
118) =>
119 Effect.runPromise(
120 Effect.ignore(
121 Effect.tryPromise({
122 try: try_,
123 catch: (cause) => new LocalExecutorDisposeError({ operation, cause }),
124 }),
125 ),
126 );
127
128const handleOrNull = (promise: ReturnType<typeof createExecutorHandle>) =>
129 Effect.runPromise(

Callers 2

createExecutorHandleFunction · 0.85
disposeCurrentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected