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

Function ignorePromiseFailure

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

Source from the content-addressed store, hash-verified

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

Callers 2

createExecutorHandleFunction · 0.85
disposeCurrentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected