I have this code:
await asyncio.wait_for(wait, timeout=60)
my wait function is:
def wait():
while True:
if qiwiapi.check(comment):
break
sleep(2)
It gives me
An asyncio.Future, a coroutine or an awaitable is required
How can I make it work? I need a timeout for a non async function.