MCPcopy
hub / github.com/yortus/asyncawait / callback

Function callback

src/await/makeAwaitFunc.js:134–134  ·  view source on GitHub ↗
(err, val)

Source from the content-addressed store, hash-verified

132function thunkToPromise(thunk) {
133 return new Promise(function (resolve, reject) {
134 var callback = function (err, val) { return (err ? reject(err) : resolve(val)); };
135 thunk(callback);
136 });
137}

Callers 15

runFunction · 0.50
fibonacciFunction · 0.50
fibonacciFunction · 0.50
nodeifiedFunction · 0.50
countFilesFunction · 0.50
countFilesFunction · 0.50
nodeifiedFunction · 0.50
getAllPathsAndStatsFunction · 0.50
listCandidatesFunction · 0.50
selectBestCandidateFunction · 0.50
addPreviewIfAppropriateFunction · 0.50
largestFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected