MCPcopy
hub / github.com/bee-queue/bee-queue / _evalScript

Method _evalScript

lib/queue.js:917–928  ·  view source on GitHub ↗

* Evaluate the named script, return a promise with its results. * * Same parameter list/syntax as evalsha, except for the name. * * @param {string} name

()

Source from the content-addressed store, hash-verified

915 * @param {string} name
916 */
917 _evalScript() {
918 // Avoid deoptimization by leaking arguments: store them directly in an
919 // array instead of passing them to a helper.
920 const args = new Array(arguments.length);
921 for (let i = 0; i < arguments.length; ++i) {
922 args[i] = arguments[i];
923 }
924
925 return this._commandable().then((client) =>
926 this._evalScriptOn(client, args)
927 );
928 }
929}
930
931module.exports = Queue;

Callers 3

removeJobMethod · 0.95
_doStalledJobCheckMethod · 0.95
_activateDelayedMethod · 0.95

Calls 2

_commandableMethod · 0.95
_evalScriptOnMethod · 0.95

Tested by

no test coverage detected