MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / resetRequests

Method resetRequests

projects/JavaScript/proto/proto.js:7753–7759  ·  view source on GitHub ↗

* Reset client requests * @this {!FinalClient}

()

Source from the content-addressed store, hash-verified

7751 * @this {!FinalClient}
7752 */
7753 resetRequests () {
7754 for (let [, value] of this._requests_by_id) {
7755 value[2].reject(new Error('Reset client!'))
7756 }
7757 this._requests_by_id.clear()
7758 this._requests_by_timestamp.clear()
7759 }
7760
7761 /**
7762 * Watchdog client requests for timeouts

Callers 1

resetMethod · 0.95

Calls 2

clearMethod · 0.80
rejectMethod · 0.45

Tested by

no test coverage detected