asyncio - run coroutine in the background

Paul Rubin no.email at nospam.invalid
Mon Feb 15 02:39:07 EST 2016


"Frank Millman" <frank at chagford.com> writes:
> The benefit of my class is that it enables me to take the coroutine
> and run it in another thread, without having to re-engineer the whole
> thing.

Threads in Python don't get you parallelism either, of course.

I haven't used async/await yet and it's looking painful.  I've been
wanting to read this:

 http://www.snarky.ca/how-the-heck-does-async-await-work-in-python-3-5

but I start to think it isn't all that great an approach to concurrency.


More information about the Python-list mailing list