I understand that we use async
when we want to use await
inside a function, but if the function returns a promise (without awaiting it), should we prefix the name with async?
Example 1:
async function fetching() {
return fetch('someUrl')
}
Example 2:
function fetching() {
return fetch('someUrl');
}
What is more proper, example 1 or example 2?