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

Method resetRequests

projects/JavaScript/proto/enums.js:8008–8014  ·  view source on GitHub ↗

* Reset client requests * @this {!Client}

()

Source from the content-addressed store, hash-verified

8006 * @this {!Client}
8007 */
8008 resetRequests () {
8009 for (let [, value] of this._requests_by_id) {
8010 value[2].reject(new Error('Reset client!'))
8011 }
8012 this._requests_by_id.clear()
8013 this._requests_by_timestamp.clear()
8014 }
8015
8016 /**
8017 * Watchdog client requests for timeouts

Callers 1

resetMethod · 0.95

Calls 2

clearMethod · 0.80
rejectMethod · 0.45

Tested by

no test coverage detected