MCPcopy
hub / github.com/strongloop/loopback / next

Function next

lib/persisted-model.js:1193–1201  ·  view source on GitHub ↗
(err, conflicts, cps, updates)

Source from the content-addressed store, hash-verified

1191 tryReplicate(sourceModel, targetModel, since, options, next);
1192
1193 function next(err, conflicts, cps, updates) {
1194 const finished = err || conflicts.length ||
1195 !updates || updates.length === 0 ||
1196 attempt >= MAX_ATTEMPTS;
1197
1198 if (finished)
1199 return callback(err, conflicts, cps);
1200 run(attempt + 1, cps);
1201 }
1202 }
1203 };
1204

Callers 15

reportErrorAndNextFunction · 0.70
changeHandlerFunction · 0.70
deleteHandlerFunction · 0.70
application.jsFile · 0.70
server-app.jsFile · 0.70
change.test.jsFile · 0.50
checkpointFunction · 0.50
updateFunction · 0.50
setupServerFunction · 0.50
seedServerDataFunction · 0.50

Calls 1

runFunction · 0.70

Tested by 15

checkpointFunction · 0.40
updateFunction · 0.40
setupServerFunction · 0.40
seedServerDataFunction · 0.40
seedClientDataFunction · 0.40
replicateServerToLocalFunction · 0.40
givenAppWithUserFunction · 0.40
setupAppAndRequestFunction · 0.40
observeOptionsBeforeSaveFunction · 0.40
observeOptionsOnAccessFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…