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

Method isInSet

lib/job.js:212–224  ·  view source on GitHub ↗
(set, cb)

Source from the content-addressed store, hash-verified

210 }
211
212 isInSet(set, cb) {
213 const promise = this.queue
214 ._commandable()
215 .then((client) =>
216 helpers.callAsync((done) =>
217 client.sismember(this.queue.toKey(set), this.id, done)
218 )
219 )
220 .then((result) => result === 1);
221
222 if (cb) helpers.asCallback(promise, cb);
223 return promise;
224 }
225
226 /**
227 * Compute the delay for rescheduling the job after it fails.

Callers 2

queue-test.jsFile · 0.80
job-test.jsFile · 0.80

Calls 2

_commandableMethod · 0.80
toKeyMethod · 0.80

Tested by

no test coverage detected