Similar to this question Java Equivalent of C# async/await? which asked about Java, I am asking about Javascript.
How do I write the following C# in Javascript in an async /await manner, without using callbacks
public async Task<IHttpActionResult> SomeMethod(string myStr) {
await Task.Delay(2000);
//== continue here after 2 secs
}