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

Method execute

lib/concurrent/index.js:119–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 }
118
119 execute() {
120 const promises = new Array(this._concurrencyLevel);
121
122 for (let i = 0; i < this._concurrencyLevel; i++) {
123 promises[i] = this._executeOneAtATime(i, 0);
124 }
125
126 return Promise.all(promises).then(() => this._result);
127 }
128
129 _executeOneAtATime(initialIndex, iteration) {
130 const index = initialIndex + this._concurrencyLevel * iteration;

Callers 15

_executeSelectMethod · 0.45
getExecutorFromQueryMethod · 0.45
_setSingleExecutorMethod · 0.45
_getAnalyticsMasterMethod · 0.45
executeConcurrentFunction · 0.45
_executeOneAtATimeMethod · 0.45
_executeOneMethod · 0.45
test-helper.jsFile · 0.45
partitionerSuiteFunction · 0.45

Calls 1

_executeOneAtATimeMethod · 0.95

Tested by

no test coverage detected