We know that async functions return a Promise implicitly. But I have a purely pedantic question. Should I put an async keyword if I return a Promise explicitly?
Is this:
const wait = async ms => new Promise(
resolve => setTimeout(resolve, ms)
);
Any different than this?
const wait = ms => new Promise(
resolve => setTimeout(resolve, ms)
);
I believe that technically they are identical. Is there any style guide or official recommendation behind any of these two ways to define this kind of function?