MCPcopy Create free account
hub / github.com/EvoMap/evolver / _retryFsLockOperation

Function _retryFsLockOperation

src/forceUpdate.js:227–239  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

225}
226
227function _retryFsLockOperation(fn) {
228 var err = null;
229 for (var attempt = 0; attempt < 3; attempt++) {
230 try {
231 return fn();
232 } catch (e) {
233 err = e;
234 if (!_isRetryableFsLockError(e)) break;
235 if (attempt < 2) _waitForFsLockRetry();
236 }
237 }
238 throw err;
239}
240
241function _downloadUrlWithNode(url, destPath) {
242 var script = [

Callers 3

_installDownloadedTreeFunction · 0.85

Calls 3

_isRetryableFsLockErrorFunction · 0.85
_waitForFsLockRetryFunction · 0.85
fnFunction · 0.50

Tested by

no test coverage detected