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

Method reject

projects/JavaScript/proto/proto.js:7059–7070  ·  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

7057 * @returns {!boolean} Reject handle flag
7058 */
7059 reject (value) {
7060 let item = this._requests_by_id.get(value.id)
7061 if (item != null) {
7062 let timestamp = item[0]
7063 let promise = item[2]
7064 promise.reject(value)
7065 this._requests_by_id.delete(value.id)
7066 this._requests_by_timestamp.delete(timestamp)
7067 return true
7068 }
7069 return false
7070 }
7071
7072 /**
7073 * 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