MCPcopy
hub / github.com/localForage/localForage / executeCallback

Function executeCallback

src/utils/executeCallback.js:1–12  ·  view source on GitHub ↗
(promise, callback)

Source from the content-addressed store, hash-verified

1function executeCallback(promise, callback) {
2 if (callback) {
3 promise.then(
4 function(result) {
5 callback(null, result);
6 },
7 function(error) {
8 callback(error);
9 }
10 );
11 }
12}
13
14export default executeCallback;

Callers 15

getItemFunction · 0.50
iterateFunction · 0.50
setItemFunction · 0.50
removeItemFunction · 0.50
clearFunction · 0.50
lengthFunction · 0.50
keyFunction · 0.50
keysFunction · 0.50
dropInstanceFunction · 0.50
clearFunction · 0.50
getItemFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…