MCPcopy Index your code
hub / github.com/bee-queue/bee-queue / _commandable

Method _commandable

lib/queue.js:193–203  ·  view source on GitHub ↗
(requireBlocking)

Source from the content-addressed store, hash-verified

191 }
192
193 _commandable(requireBlocking) {
194 if (requireBlocking ? this.paused : this._isClosed) {
195 return Promise.reject(new Error('closed'));
196 }
197
198 if (this._isReady) {
199 return Promise.resolve(requireBlocking ? this.bclient : this.client);
200 }
201
202 return this._ready.then(() => this._commandable(requireBlocking));
203 }
204
205 close(timeout, cb) {
206 if (typeof timeout === 'function') {

Callers 12

destroyMethod · 0.95
checkHealthMethod · 0.95
_addJobsByIdsMethod · 0.95
getJobsMethod · 0.95
getJobMethod · 0.95
_getNextJobMethod · 0.95
saveAllMethod · 0.95
_evalScriptMethod · 0.95
fromIdMethod · 0.80
reportProgressMethod · 0.80
retryMethod · 0.80
isInSetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected