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

Function reject

lib/helpers.js:26–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 (value) => Promise.resolve(fn()).then(() => value),
25 (err) => {
26 const reject = () => Promise.reject(err);
27 return new Promise((resolve) => resolve(fn())).then(reject, reject);
28 }
29 );

Callers 1

connectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected