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

Method reject

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

7734 * @returns {!boolean} Reject handle flag
7735 */
7736 reject (value) {
7737 let item = this._requests_by_id.get(value.id)
7738 if (item != null) {
7739 let timestamp = item[0]
7740 let promise = item[2]
7741 promise.reject(value)
7742 this._requests_by_id.delete(value.id)
7743 this._requests_by_timestamp.delete(timestamp)
7744 return true
7745 }
7746 return false
7747 }
7748
7749 /**
7750 * Reset client requests

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
rejectMethod · 0.45

Tested by

no test coverage detected