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

Method response

projects/JavaScript/proto/enums.js:8295–8306  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

8293 * @returns {!boolean} Response handle flag
8294 */
8295 response (value) {
8296 let item = this._requests_by_id.get(value.id)
8297 if (item != null) {
8298 let timestamp = item[0]
8299 let promise = item[2]
8300 promise.resolve(value)
8301 this._requests_by_id.delete(value.id)
8302 this._requests_by_timestamp.delete(timestamp)
8303 return true
8304 }
8305 return false
8306 }
8307
8308 /**
8309 * Reject value

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected