MCPcopy Index your code
hub / github.com/ptmt/react-native-macos / copyNext

Function copyNext

local-cli/bundle/saveAssets.js:54–66  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

52 log('Copying ' + queue.length + ' asset files');
53 return new Promise((resolve, reject) => {
54 const copyNext = (error) => {
55 if (error) {
56 return reject(error);
57 }
58 if (queue.length === 0) {
59 log('Done copying assets');
60 resolve();
61 } else {
62 const src = queue.shift();
63 const dest = filesToCopy[src];
64 copy(src, dest, copyNext);
65 }
66 };
67 copyNext();
68 });
69}

Callers 1

copyAllFunction · 0.85

Calls 2

copyFunction · 0.85
logFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…