6 ms·
Interesting about adding async. I actually didn’t know it eliminated the possibility of it throwing an error. What happens if it explicitly throws an error?
by matt-attack 7y ago
Interesting about adding async. I actually didn’t know it eliminated the possibility of it throwing an error. What happens if it explicitly throws an error?
- seniorsassycat 7y agoAn async function that throws and error will return a promise that will reject with the thrown error.