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

Method reject

projects/JavaScript/proto/enums.js:8314–8325  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

8312 * @returns {!boolean} Reject handle flag
8313 */
8314 reject (value) {
8315 let item = this._requests_by_id.get(value.id)
8316 if (item != null) {
8317 let timestamp = item[0]
8318 let promise = item[2]
8319 promise.reject(value)
8320 this._requests_by_id.delete(value.id)
8321 this._requests_by_timestamp.delete(timestamp)
8322 return true
8323 }
8324 return false
8325 }
8326
8327 /**
8328 * Reset client requests

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
rejectMethod · 0.45

Tested by

no test coverage detected