MCPcopy Create free account
hub / github.com/FastLED/FastLED / fetchAllFiles

Function fetchAllFiles

src/platforms/wasm/compiler/index.ts:776–784  ·  view source on GitHub ↗
(filesJson, onComplete)

Source from the content-addressed store, hash-verified

774 * @param {Function} [onComplete] - Optional callback when all files are loaded
775 */
776 const fetchAllFiles = async (filesJson, onComplete) => {
777 const promises = filesJson.map(async (file) => {
778 await processFile(file);
779 });
780 await Promise.all(promises);
781 if (onComplete) {
782 onComplete();
783 }
784 };
785
786 // NOTE: Callback functions are now automatically registered by importing fastled_callbacks.js
787 // No need to manually bind them here - they're pure JavaScript functions

Callers 1

fastledLoadSetupLoopFunction · 0.85

Calls 3

processFileFunction · 0.85
mapMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected