We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Again, this is not important and perhaps you had wanted to keep it simple, but can't loadImages be made more concurrent if written this way:
loadImages
export async function loadImages(collection) { const img_keys = Object.keys(collection); const img_paths = Object.values(collection); const img_promises = img_paths.map((img_path) => loadImage(img_path)); const imgs = await Promise.all(img_promises); const img_entries = imgs.map((img, i) => [img_keys[i], img]); return Object.fromEntries(img_entries); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Again, this is not important and perhaps you had wanted to keep it simple, but can't
loadImages
be made more concurrent if written this way:The text was updated successfully, but these errors were encountered: