Reputation: 12133
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.
Upvotes: 29
Views: 15648