title: Can i use async functions everywhere in javascript?
body: <p>Can i use async funtion inside</p>
  <pre><code>XMLHttpRequest.addEventListener('readystatechange',async function(){
  </code></pre>
  <p>or</p>
  <pre><code>setTimeout(async function(){ 
  </code></pre>
  <p>or</p>
  <pre><code>element.addEventListener('click',async function(){
  </code></pre>
  <p>Is syntax like that correct/valid?</p>
  <p>I need await function but when i use it inside non async functions like below i got error: &quot;Uncaught SyntaxError: await is only valid in async functions&quot;</p>