ECMAScript Cookbook
上QQ阅读APP看书,第一时间看更新

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.