File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/content/examples/en/16_Parallel_Loading_Promise/00_Async_Image_Loader Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ async function setup() {
1818 textSize ( 18 ) ;
1919
2020 // Use async/await with Promise.all to load all three images at once
21- // This waits untill ALL images are loaded before continuing
21+ // This waits until ALL images are loaded before continuing
2222 [ img1 , img2 , img3 ] = await Promise . all ( [
2323 loadImageAsync ( 'https://picsum.photos/100/100?random=1' ) , // Replace the image links with user wanted images.
2424 loadImageAsync ( 'https://picsum.photos/100/100?random=2' ) ,
@@ -43,4 +43,4 @@ function loadImageAsync(url) {
4343 //If successful, resolve the promise with the image. If it fails, reject with the error.
4444 loadImage ( url , img => resolve ( img ) , err => reject ( err ) ) ;
4545 } ) ;
46- }
46+ }
You can’t perform that action at this time.
0 commit comments