title: JS Async Function in QML
body: <p>I'm wondering if it is possible to use an <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function" rel="nofollow noreferrer">async function</a> in QML.<br>
  Like this:</p>
  
  <pre><code>async function additem(clientName){
      myListModel.append({name:clientName});
  }
  </code></pre>
  
  <p>Instead of using this:</p>
  
  <pre><code>function additem(clientName){
      myListModel.append({name:clientName});
  }
  </code></pre>
  
  <p>I've tried it and I get a syntax error: <strong>Expected token:'`</strong> and couldn't find any documentation about <strong>QML supporting JavaScript "async function"</strong>.</p>
  
  <p>any idea why is that? or probably if there is any other way to do async in JS which can be used in QML?</p>
  
  <p><strong>Note:</strong> I want to append data to my <strong>ListModel</strong> and I want to see it as <strong>its progress</strong> and <strong>I don't want whole application freezes</strong> until whole data appended to the model.</p>
  
  <p>Appreciate your time.</p>