File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -462,9 +462,10 @@ for (const k in constants) {
462
462
* ```
463
463
*
464
464
* Code placed in `setup()` will run once before code placed in
465
- * <a href="#/p5/draw">draw()</a> begins looping. If the
466
- * <a href="#/p5/preload">preload()</a> is declared, then `setup()` will
467
- * run immediately after <a href="#/p5/preload">preload()</a> finishes
465
+ * <a href="#/p5/draw">draw()</a> begins looping. When `setup()` is declared async,
466
+ * execution pauses at each `await` until the promise resolves, ensuring all assets
467
+ * are loaded before the sketch continues.
468
+ *
468
469
* loading assets.
469
470
*
470
471
* Note: `setup()` doesn’t have to be declared, but it’s common practice to do so.
@@ -535,7 +536,6 @@ for (const k in constants) {
535
536
* </code>
536
537
* </div>
537
538
*/
538
-
539
539
/**
540
540
* A function that's called repeatedly while the sketch runs.
541
541
*
You can’t perform that action at this time.
0 commit comments