]> granicus.if.org Git - python/commit
bpo-34037, asyncio: add BaseEventLoop.wait_executor_on_close (GH-13786)
authorVictor Stinner <vstinner@redhat.com>
Mon, 3 Jun 2019 21:31:04 +0000 (23:31 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Jun 2019 21:31:04 +0000 (23:31 +0200)
commit0f0a30f4da4b529e0f7df857b9f575b231b32758
treec76047e9485f288977fb55e076b0f26eb3455ebd
parent78c7d527799dacca91b9ed67057cb996efe526b0
bpo-34037, asyncio: add BaseEventLoop.wait_executor_on_close (GH-13786)

Add BaseEventLoop.wait_executor_on_close attribute: true by default.

loop.close() now waits for the default executor to finish by default.
Set loop.wait_executor_on_close attribute to False to not wait for
the executor.
Doc/library/asyncio-eventloop.rst
Lib/asyncio/base_events.py
Misc/NEWS.d/next/Library/2019-06-03-22-54-15.bpo-34037.fKNAbH.rst [new file with mode: 0644]