Open IgelVV opened 8 months ago
This is necessary to prevent the completion of the main
execution. await asyncio.Future()
switches the event loop to perform another task. Since the result is not directly set in the Future
instance, the event loop will execute main
forever. Of course, untill you press Ctrl+C
What does exactly
await queue.consume()
do? Why do we need to keep the loop running, it looks likeconsume()
has to. I tried to walk through the code and found creating unavailable tasks or smth like that, but I can't.I will be very glad if you help me figure it out, thank you in advance. You're making a great library.