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

Function disposeCurrent

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

Source from the content-addressed store, hash-verified

304 sharedHandlePromise = null;
305
306 const disposeCurrent = async (): Promise<void> => {
307 const handle = currentHandlePromise ? await handleOrNull(currentHandlePromise) : null;
308 if (handle) {
309 await ignorePromiseFailure("disposeExecutor", () => handle.dispose());
310 }
311 };
312
313 const nextLifecycle = sharedHandleLifecycle.then(disposeCurrent, disposeCurrent);
314 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