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

Method response

projects/JavaScript/proto/enums.js:7972–7983  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

7970 * @returns {!boolean} Response handle flag
7971 */
7972 response (value) {
7973 let item = this._requests_by_id.get(value.id)
7974 if (item != null) {
7975 let timestamp = item[0]
7976 let promise = item[2]
7977 promise.resolve(value)
7978 this._requests_by_id.delete(value.id)
7979 this._requests_by_timestamp.delete(timestamp)
7980 return true
7981 }
7982 return false
7983 }
7984
7985 /**
7986 * Reject value

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected