title: How to schedule an async function in python?
body: <p>I'm making a bot for discord. It's basically the same problem as this one: <a href="https://stackoverflow.com/questions/51530012/how-can-i-run-an-async-function-using-the-schedule-library">How can I run an async function using the schedule library?</a></p>
  
  <p>except nothing worked in the link above. In my case I'm getting "myfunction was never awaited"</p>
  
  <pre><code>async def birthday():        
      channel = client.get_channel(xxxxxx)
      fileName = open("birthdayFile.txt", "r")
      today = time.strftime('%m%d')
  
      for line in fileName:
              if today in line:
                      line = line.split(' ')
  
                      line[-1] = line[-1].strip()
                      if line[-1] != line[1]:
                              bdayperson = line[1]+' '+line[2]
                      else:
                              bdayperson = line[1]
  
                      await channel.send(f"Happy Birthday to "+ bdayperson + "! " )
  
  
  schedule.every().day.at("18:36").do(client.loop.call_soon_threadsafe, birthday)
  </code></pre>