1. A programming construct that pauses execution of an asynchronous function until a promise or async operation completes, without blocking the main thread
The async wait function allows the program to pause execution while waiting for the API response.
A função de espera assíncrona permite que o programa pause a execução enquanto aguarda a resposta da API.
2. A non-blocking delay mechanism in asynchronous programming that suspends a coroutine or task
Using async wait in JavaScript helps prevent UI freezing during long operations.
Usar espera assíncrona em JavaScript ajuda a evitar o congelamento da interface durante operações longas.