MCPcopy Index your code
hub / github.com/share/sharedb / callbackAfter

Function callbackAfter

test/util.js:53–58  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

51 throw new Error('Required `callback` argument must be a function');
52 }
53 var callbackAfter = function(err) {
54 callbackAfter.called++;
55 if (err) return callback(err);
56 if (callbackAfter.called <= calls) return;
57 callback();
58 };
59 callbackAfter.called = 0;
60 return callbackAfter;
61};

Callers

nothing calls this directly

Calls 1

callbackFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…