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

Method reject

projects/JavaScript/proto/test.js:25013–25030  ·  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

25011 * @returns {!boolean} Reject handle flag
25012 */
25013 reject (value) {
25014 let item = this._requests_by_id.get(value.id)
25015 if (item != null) {
25016 let timestamp = item[0]
25017 let promise = item[2]
25018 promise.reject(value)
25019 this._requests_by_id.delete(value.id)
25020 this._requests_by_timestamp.delete(timestamp)
25021 return true
25022 }
25023
25024 // noinspection RedundantIfStatementJS
25025 if (this._protoClient.reject(value)) {
25026 return true
25027 }
25028
25029 return false
25030 }
25031
25032 /**
25033 * 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