I've created a python class that extends threading
and uses a library that runs asyncio
tasks.
import threading
from app.food import recipes
class Mixer(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
async def run(self):
while True:
ingredients = await recipes.get()
When I run the code I get following error:
RuntimeWarning: coroutine 'Mixer.run' was never awaited
Any ideas how to solve it?
Thanks