What is the actual impact of putting void
before promise?
async function doAsyncStuff(){
...
}
function nonAsyncFunction(){
void doAsyncStuff();
}
I couldn't find any official documentation for this, but it must be doing something as it resolves no-floating-promises
TSLint error.
void
has been a javascript operator since Brendan Eich wore short pants :p – Sutphin/*await*/ fireAndForget();
cause that is also understood by people that aren't that familiar with JS, it doesn't stop the linter from complaining though – Shill