MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / enqueueWrite

Method enqueueWrite

source code/utils/sessionStorage.ts:608–618  ·  view source on GitHub ↗
(filePath: string, entry: Entry)

Source from the content-addressed store, hash-verified

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

Callers 1

appendEntryMethod · 0.95

Calls 3

scheduleDrainMethod · 0.95
setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected