title: How to know if a function is async?
body: <p>I have to pass a function to another function, and execute it as a callback. The problem is that sometimes this function is async, like:</p>
  
  <pre><code>async function() {
   // Some async actions
  }
  </code></pre>
  
  <p>So I want to execute <code>await callback()</code> or <code>callback()</code> depending on the type of function that it is receiving.</p>
  
  <p>Is there a way to know the type of the function??</p>