chain awaits code example
Example: chaining async await
async function test() {
let v1 = await func1();
let v2 = await func2(v1);
return await func3(v1, v2);
}
async function test() {
let v1 = await func1();
let v2 = await func2(v1);
return await func3(v1, v2);
}