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.
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.