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

Method resetRequests

projects/JavaScript/proto/proto.js:7076–7082  ·  view source on GitHub ↗

* Reset client requests * @this {!Client}

()

Source from the content-addressed store, hash-verified

7074 * @this {!Client}
7075 */
7076 resetRequests () {
7077 for (let [, value] of this._requests_by_id) {
7078 value[2].reject(new Error('Reset client!'))
7079 }
7080 this._requests_by_id.clear()
7081 this._requests_by_timestamp.clear()
7082 }
7083
7084 /**
7085 * Watchdog client requests for timeouts

Callers 1

resetMethod · 0.95

Calls 2

clearMethod · 0.80
rejectMethod · 0.45

Tested by

no test coverage detected