Creating promises with an async function

The async functions are an easy way to create and work with promises. In this recipe, we'll see a basic form of this.

Get ECMAScript Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.