MCPcopy
hub / github.com/codeaashu/claude-code / enqueueWrite

Method enqueueWrite

src/utils/sessionStorage.ts:606–616  ·  view source on GitHub ↗
(filePath: string, entry: Entry)

Source from the content-addressed store, hash-verified

604 }
605
606 private enqueueWrite(filePath: string, entry: Entry): Promise<void> {
607 return new Promise<void>(resolve => {
608 let queue = this.writeQueues.get(filePath)
609 if (!queue) {
610 queue = []
611 this.writeQueues.set(filePath, queue)
612 }
613 queue.push({ entry, resolve })
614 this.scheduleDrain()
615 })
616 }
617
618 private scheduleDrain(): void {
619 if (this.flushTimer) {

Callers 1

appendEntryMethod · 0.95

Calls 4

scheduleDrainMethod · 0.95
getMethod · 0.65
setMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected