MCPcopy Create free account
hub / github.com/Noumena-Network/code / _resetFlushState

Method _resetFlushState

src/utils/sessionStorage.ts:611–618  ·  view source on GitHub ↗

@internal Reset flush/queue state for testing.

()

Source from the content-addressed store, hash-verified

609
610 /** @internal Reset flush/queue state for testing. */
611 _resetFlushState(): void {
612 this.pendingWriteCount = 0
613 this.flushResolvers = []
614 if (this.flushTimer) clearTimeout(this.flushTimer)
615 this.flushTimer = null
616 this.activeDrain = null
617 this.writeQueues = new Map()
618 }
619
620 private incrementPendingWrites(): void {
621 this.pendingWriteCount++

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected