3 ms·
The answer is to never throw exceptions from promise returning functions. Mark all promise returning functions `async` - even when it doesn't `await` - because
by seniorsassycat 3y ago
The answer is to never throw exceptions from promise returning functions. Mark all promise returning functions `async` - even when it doesn't `await` - because an async function always returns.
https://typescript-eslint.io/rules/promise-function-async/ https://typescript-eslint.io/rules/promise-function-async/
- moring 3y agoThis only solves the second example (the "map" one), but not the first example because it doesn't contain any promise-returning function that throws.
- seniorsassycat 3y ago> doesn't contain any promise-returning function that throws Then what is the issue described in #1? Ahh, the compute arg calls