Marko Rauhamaa <ma...@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.