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

Method reject

projects/JavaScript/proto/protoex.js:7316–7333  ·  view source on GitHub ↗

* Reject value * @this {!Client} * @param {!object} value Value to reject * @returns {!boolean} Reject handle flag

(value)

Source from the content-addressed store, hash-verified

7314 * @returns {!boolean} Reject handle flag
7315 */
7316 reject (value) {
7317 let item = this._requests_by_id.get(value.id)
7318 if (item != null) {
7319 let timestamp = item[0]
7320 let promise = item[2]
7321 promise.reject(value)
7322 this._requests_by_id.delete(value.id)
7323 this._requests_by_timestamp.delete(timestamp)
7324 return true
7325 }
7326
7327 // noinspection RedundantIfStatementJS
7328 if (this._protoClient.reject(value)) {
7329 return true
7330 }
7331
7332 return false
7333 }
7334
7335 /**
7336 * Reset client requests

Callers 7

requestMethod · 0.45
resetRequestsMethod · 0.45
watchdogRequestsMethod · 0.45
requestMethod · 0.45
rejectMethod · 0.45
resetRequestsMethod · 0.45
watchdogRequestsMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected