MCPcopy Index your code
hub / github.com/Noumena-Network/code / trackWrite

Method trackWrite

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

Source from the content-addressed store, hash-verified

633 }
634
635 private async trackWrite<T>(fn: () => Promise<T>): Promise<T> {
636 this.incrementPendingWrites()
637 try {
638 return await fn()
639 } finally {
640 this.decrementPendingWrites()
641 }
642 }
643
644 private enqueueWrite(filePath: string, entry: Entry): Promise<void> {
645 return new Promise<void>(resolve => {

Callers 6

removeMessageByUuidMethod · 0.95
insertMessageChainMethod · 0.95
insertQueueOperationMethod · 0.95

Calls 2

Tested by

no test coverage detected