MCPcopy Create free account
hub / github.com/WJX20/claude-code / flushAndCleanup

Function flushAndCleanup

src/tasks/LocalShellTask/LocalShellTask.tsx:515–522  ·  view source on GitHub ↗
(shellCommand: ShellCommand)

Source from the content-addressed store, hash-verified

513 cleanupFn?.();
514}
515async function flushAndCleanup(shellCommand: ShellCommand): Promise<void> {
516 try {
517 await shellCommand.taskOutput.flush();
518 shellCommand.cleanup();
519 } catch (error) {
520 logError(error);
521 }
522}

Callers 3

spawnShellTaskFunction · 0.85
backgroundTaskFunction · 0.85

Calls 3

logErrorFunction · 0.50
flushMethod · 0.45
cleanupMethod · 0.45

Tested by

no test coverage detected