MCPcopy
hub / github.com/claude-code-best/claude-code / track

Function track

src/utils/task/diskOutput.ts:83–87  ·  view source on GitHub ↗
(p: Promise<T>)

Source from the content-addressed store, hash-verified

81// circuit the drain and leave other ops racing the rmSync.
82const _pendingOps = new Set<Promise<unknown>>()
83function track<T>(p: Promise<T>): Promise<T> {
84 _pendingOps.add(p)
85 void p.finally(() => _pendingOps.delete(p)).catch(() => {})
86 return p
87}
88
89/**
90 * Encapsulates async disk writes for a single task's output.

Callers 4

appendMethod · 0.85
evictTaskOutputFunction · 0.85
initTaskOutputFunction · 0.85
initTaskOutputAsSymlinkFunction · 0.85

Calls 2

deleteMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected