[Async-sig] await question

Pradip Caulagi caulagi at gmail.com
Mon Dec 10 07:28:20 EST 2018


I was wondering if every use of 'await' should return the control to
event loop? So in this example -
https://gist.github.com/caulagi/3edea8cf734495f2592528a48f99e1d2 - I
was hoping I would see 'A', 'B' to be mixed, but I see only 'A'
followed by 'B'. What am I missing? I am using Python 3.7.1.

How is my example different from
https://docs.python.org/3.7/library/asyncio-task.html#asyncio.run?

Thanks.


More information about the Async-sig mailing list