MCPcopy Create free account
hub / github.com/HELPMEEADICE/doge-code / enqueueWrite

Method enqueueWrite

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

Source from the content-addressed store, hash-verified

650 }
651
652 private enqueueWrite(filePath: string, entry: Entry): Promise<void> {
653 return new Promise<void>(resolve => {
654 let queue = this.writeQueues.get(filePath)
655 if (!queue) {
656 queue = []
657 this.writeQueues.set(filePath, queue)
658 }
659 queue.push({ entry, resolve })
660 this.scheduleDrain()
661 })
662 }
663
664 private scheduleDrain(): void {
665 if (this.flushTimer) {

Callers 1

appendEntryMethod · 0.95

Calls 3

scheduleDrainMethod · 0.95
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected