MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / trackWrite

Method trackWrite

src/utils/sessionStorage.ts:604–611  ·  view source on GitHub ↗
(fn: () => Promise<T>)

Source from the content-addressed store, hash-verified

602 }
603
604 private async trackWrite<T>(fn: () => Promise<T>): Promise<T> {
605 this.incrementPendingWrites()
606 try {
607 return await fn()
608 } finally {
609 this.decrementPendingWrites()
610 }
611 }
612
613 private enqueueWrite(filePath: string, entry: Entry): Promise<void> {
614 return new Promise<void>(resolve => {

Callers 6

removeMessageByUuidMethod · 0.95
insertMessageChainMethod · 0.95
insertQueueOperationMethod · 0.95

Calls 2

Tested by

no test coverage detected