await is only valid in async function
The error is not refering to myfunction but to start. I use the opportunity of this question to advise you about an known anti pattern using await which is : return await. WRONG CORRECT Also, know that there is a special case where return await is correct and important : (using try/catch)