The only thing this function does is to trace if the promise p rejects. It is useful to explain to ESLint that p is intentionally not awaited.
p
await
Instead of dontAwait(x) use void x.
dontAwait(x)
void x
The only thing this function does is to trace if the promise
p
rejects. It is useful to explain to ESLint thatp
is intentionally notawait
ed.