]> granicus.if.org Git - python/commit
bpo-36607: Eliminate RuntimeError raised by asyncio.all_tasks() (GH-13971)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 11 Jun 2019 20:32:12 +0000 (13:32 -0700)
committerGitHub <noreply@github.com>
Tue, 11 Jun 2019 20:32:12 +0000 (13:32 -0700)
commit83abd9658b4845299452be06c9ce92cbceee944d
treeea1147b977cd7222a3efeed60325454a0841af4d
parentb9ecc0fadaf04aa5f7c9cec9addb4c9c97380fee
bpo-36607: Eliminate RuntimeError raised by asyncio.all_tasks() (GH-13971)

If internal tasks weak set is changed by another thread during iteration.

https://bugs.python.org/issue36607
(cherry picked from commit 65aa64fae89a24491aae84ba0329eb8f3c68c389)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Lib/asyncio/tasks.py
Misc/NEWS.d/next/Library/2019-06-11-13-52-04.bpo-36607.5_mJkQ.rst [new file with mode: 0644]