re: JavaScript async and await VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Not completely, as there is one case when it can be beneficial to use return await. Let's say you have three async functions, A,B and C, where A ca...
 

Way too complicated lol. I just do this:

—-
async function test () {
await a
await b
Return c
}

Test().catch(handleError)

If C errors out, I still catch it with handleError.

code of conduct - report abuse