MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / setResult

Method setResult

lib/operation-state.js:154–157  ·  view source on GitHub ↗

* Sets the result of this operation, declaring that no further input will be processed for this operation. * @param {Error} err * @param {Object} [result] * @param {Number} [length]

(err, result, length)

Source from the content-addressed store, hash-verified

152 * @param {Number} [length]
153 */
154 setResult(err, result, length) {
155 this._markAsCompleted();
156 this._swapCallbackAndInvoke(err, result, length);
157 }
158
159 _swapCallbackAndInvoke(err, result, length, newCallback) {
160 const callback = this._callback;

Callers 6

setResultRowMethod · 0.95
clearAndInvokePendingMethod · 0.80
_writeMethod · 0.80
handleResultMethod · 0.80
test-helper.jsFile · 0.80

Calls 2

_markAsCompletedMethod · 0.95

Tested by

no test coverage detected