How is an asynchronous function such as fs.readFile written such that it is asynchronous but different from a function decorated with the async keyword? Does an async function always return a promise?
The following works:
const Area = async (L, B) => L * B;
Area(5, 4).then(
a => console.log("Area is " + a)
);
However, a function like fs.readFile after invocation will result in an undefined value.
When using a function from a third-party library, is there a way to tell that a function is asynchronous other than from its documentation?