References
See all of my references site, link, tool, app.
DevHints.io - TL;DR for developer documentation
What Color is Your Function?
Read a blog post from Bob Nystrom, in which he compares async and sync function, respectively red and blue.
red.ts
async function red() {
await something();
}
// calling
try {
await red();
} catch (err: Error) {
console.error(err);
}
blue.ts
function blue() {
something();
}
// calling
blue();