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

Method setError

lib/concurrent/index.js:323–333  ·  view source on GitHub ↗

* Internal method to set the error of an execution. * @ignore

(index, err)

Source from the content-addressed store, hash-verified

321 * @ignore
322 */
323 setError(index, err) {
324 this.totalExecuted++;
325
326 if (this.errors.length < this._maxErrors) {
327 this.errors.push(err);
328 }
329
330 if (this._collectResults) {
331 this.resultItems[index] = err;
332 }
333 }
334}
335
336exports.executeConcurrent = executeConcurrent;

Callers 2

_setErrorMethod · 0.80
_setErrorMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected