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

Method resetRequests

projects/JavaScript/proto/test.js:25448–25456  ·  view source on GitHub ↗

* Reset client requests * @this {!FinalClient}

()

Source from the content-addressed store, hash-verified

25446 * @this {!FinalClient}
25447 */
25448 resetRequests () {
25449 this._protoClient.resetRequests()
25450
25451 for (let [, value] of this._requests_by_id) {
25452 value[2].reject(new Error('Reset client!'))
25453 }
25454 this._requests_by_id.clear()
25455 this._requests_by_timestamp.clear()
25456 }
25457
25458 /**
25459 * Watchdog client requests for timeouts

Callers 1

resetMethod · 0.95

Calls 3

clearMethod · 0.80
resetRequestsMethod · 0.45
rejectMethod · 0.45

Tested by

no test coverage detected