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

Method resetRequests

projects/JavaScript/proto/test.js:25036–25044  ·  view source on GitHub ↗

* Reset client requests * @this {!Client}

()

Source from the content-addressed store, hash-verified

25034 * @this {!Client}
25035 */
25036 resetRequests () {
25037 this._protoClient.resetRequests()
25038
25039 for (let [, value] of this._requests_by_id) {
25040 value[2].reject(new Error('Reset client!'))
25041 }
25042 this._requests_by_id.clear()
25043 this._requests_by_timestamp.clear()
25044 }
25045
25046 /**
25047 * Watchdog client requests for timeouts

Callers 2

resetMethod · 0.95
resetRequestsMethod · 0.45

Calls 2

clearMethod · 0.80
rejectMethod · 0.45

Tested by

no test coverage detected