On Thu, Oct 31, 2019, 06:02 Jason Orendorff wrote:
> Ignoring the awaited value here is like using `catch {}` to squelch all
> exceptions, or ignoring the return value of an async function or method, or
> any other expression that produces a Promise. Do we have lints for those
> pitfalls? I'm kin
On 10/31/2019 1:02 PM, Jason Orendorff wrote:
On Thu, Oct 31, 2019 at 4:10 AM Paolo Amadini
wrote:
// INCORRECT
//await Promise.allSettled([promise1, promise2]);
The last example silently loses any rejection state.
Ignoring the awaited value here is like using `catch {}` to squelch
On Thu, Oct 31, 2019 at 4:10 AM Paolo Amadini
wrote:
>// INCORRECT
>//await Promise.allSettled([promise1, promise2]);
>
> The last example silently loses any rejection state.
>
Ignoring the awaited value here is like using `catch {}` to squelch all
exceptions, or ignoring the return valu
3 matches
Mail list logo