STINNER Victor <vstin...@redhat.com> added the comment:

> Maybe.  At least we need to add a "timeout" argument to asyncio.run() to let 
> it wait for executor jobs.

The shutdown() method of concurrent.futures.Executor API doesn't accept a 
timeout. It waits for multiple things.

I added "block_on_close = True" class attribute to socketserver.ForkingMixIn 
and socketserver.ThreadingMixIn. By default, server_close() waits until all 
children complete, but the wait is non-blocking if block_on_close is false.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34037>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to