Marko Rauhamaa <ma...@pacujo.net> writes:
> @asyncio.coroutine
> def background_task(): ...
>     while time.time() - t < 10:
>         pass

Wait, that's a cpu-busy loop, you can't do that in cooperative
multitasking.  Of course you need a wait there.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to