I'm trying to make a discord bot which has a tasks.loop() which has loop inside it that takes a while to execute and slows down commands as I have further explained here. I was suggested to use threading for the code inside the tasks.loop() and then start it when the loop is run.
However, I have an await inside that function and when I try to run it I get SyntaxError: 'await' outside async function. How would I use threading and async/await together?