title: How do I pass an async function to a thread target in Python?
body: <p>I have the following code:</p>
  <pre class="lang-py prettyprint-override"><code>async some_callback(args):
      await some_function()
  </code></pre>
  <p>and I need to give it to a Thread as a target:</p>
  <pre class="lang-py prettyprint-override"><code>_thread = threading.Thread(target=some_callback, args=(&quot;some text&quot;))
  _thread.start()
  </code></pre>
  <p>The error that I get is &quot;<code>some_callback</code> is never awaited&quot;.<br />
  Any ideas how can I solve this problem?</p>