I\'m adapting a library that uses callback to use Promises. It\'s working when I use then(), but it doesn\'t work when I use await.
then()
await
The await operator can only be used in an async function.