MCPcopy
hub / github.com/affaan-m/ECC / tryWriteStatusSnapshots

Function tryWriteStatusSnapshots

scripts/loop-status.js:720–731  ·  view source on GitHub ↗
(payload, options)

Source from the content-addressed store, hash-verified

718}
719
720function tryWriteStatusSnapshots(payload, options) {
721 if (!options.writeDir) {
722 return null;
723 }
724
725 try {
726 return writeStatusSnapshots(payload, options.writeDir);
727 } catch (error) {
728 console.error(`[loop-status] WARNING: could not write status snapshots: ${error.message}`);
729 return null;
730 }
731}
732
733function sleep(ms) {
734 return new Promise(resolve => setTimeout(resolve, ms));

Callers 2

runWatchFunction · 0.85
mainFunction · 0.85

Calls 1

writeStatusSnapshotsFunction · 0.85

Tested by

no test coverage detected