Async/Await
Await#
Database functions which provide the result to a callback also support the await keyboard. The script will basically pause until the database returned the result. The function in which you use await must be marked async. An example: