When an async function is called, it returns a
Promise . When the async function returns a value, that’s not a
Promise , a
Promise will be automatically created and it will be resolved with the returned value from the function. When the
async function throws an exception, the
Promise will be rejected with the thrown value.