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

Function disposeCurrent

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

Source from the content-addressed store, hash-verified

334 sharedHandlePromise = null;
335
336 const disposeCurrent = async (): Promise<void> => {
337 const handle = currentHandlePromise ? await handleOrNull(currentHandlePromise) : null;
338 if (handle) {
339 await ignorePromiseFailure("disposeExecutor", () => handle.dispose());
340 }
341 };
342
343 const nextLifecycle = sharedHandleLifecycle.then(disposeCurrent, disposeCurrent);
344 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