This Javascript function seems to use the while loop in an asynchronous way. Is it the correct way to use while loops with asynchronous conditions?
var Boo
Is it the correct way to use while loops with asynchronous conditions?
Yes. async functions simply suspend their execution on every await until the respective promises fulfills, and any control structures continue to work as before.
async function
await