Asyncio tasks getting cancelled

ike at koeln.ccc.de ike at koeln.ccc.de
Mon Nov 5 18:50:37 EST 2018


On Tue, Nov 06, 2018 at 12:45:03AM +0100, ike at koeln.ccc.de wrote:
> Also, I may be overlooking things, but I haven't found a way to add a
> task before calling run_forever(), as asyncio will then say the loop
> isn't running yet. So I'm not sure how you would jumpstart in that case.

Ok, I was confused there. It doesn't work by using asyncio.create_task
but it will with loop.create_task.

Sorry for the noise.



More information about the Python-list mailing list