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

Function disposeCurrent

apps/local/src/executor.ts:317–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

315 sharedHandlePromise = null;
316
317 const disposeCurrent = async (): Promise<void> => {
318 const handle = currentHandlePromise ? await handleOrNull(currentHandlePromise) : null;
319 if (handle) {
320 await ignorePromiseFailure("disposeExecutor", () => handle.dispose());
321 }
322 };
323
324 const nextLifecycle = sharedHandleLifecycle.then(disposeCurrent, disposeCurrent);
325 sharedHandleLifecycle = nextLifecycle.then(

Callers

nothing calls this directly

Calls 3

handleOrNullFunction · 0.85
ignorePromiseFailureFunction · 0.85
disposeMethod · 0.80

Tested by

no test coverage detected