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

Method resetRequests

projects/JavaScript/proto/protoex.js:7339–7347  ·  view source on GitHub ↗

* Reset client requests * @this {!Client}

()

Source from the content-addressed store, hash-verified

7337 * @this {!Client}
7338 */
7339 resetRequests () {
7340 this._protoClient.resetRequests()
7341
7342 for (let [, value] of this._requests_by_id) {
7343 value[2].reject(new Error('Reset client!'))
7344 }
7345 this._requests_by_id.clear()
7346 this._requests_by_timestamp.clear()
7347 }
7348
7349 /**
7350 * 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