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
2 files changed