asyncio - run coroutine in the background
marko at pacujo.net
Thu Feb 18 01:10:38 EST 2016
Paul Rubin <no.email at nospam.invalid>:
> Marko Rauhamaa <marko at pacujo.net> writes:
>> def background_task(): ...
>> while time.time() - t < 10:
> Wait, that's a cpu-busy loop, you can't do that in cooperative
> multitasking. Of course you need a wait there.
That was the very point: to demonstrate that coroutines monopolize the
More information about the Python-list