Benefits of asyncio

Paul Rubin no.email at nospam.invalid
Wed Jun 4 03:52:34 EDT 2014


Marko Rauhamaa <marko at pacujo.net> writes:
> Mostly asyncio is a way to deal with anything you throw at it. What do
> you do if you need to exit the application immediately and your threads
> are stuck in a 2-minute timeout? 

Eh?  When the main thread exits, all the child threads go with it.
Sometimes there is some crap in the stderr because of resource cleanups
happening in unexpected order as the various threads exit, but it
all shuts down.  

The new Tulip i/o stuff based on "yield" coroutines should combine the
advantages of async and threads.



More information about the Python-list mailing list