bpo-36607: Eliminate RuntimeError raised by asyncio.all_tasks() by asvetlov · Pull Request #13971 · python/cpython · GitHub

github.com

Tin mới

asvetlov:protect-all_tasks

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Eliminate RuntimeError raised by asyncio.all_tasks()

needs backport to 3.7

needs backport to 3.7

awaiting core review

awaiting core review

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

View reviewed changes

bpo-36607: Eliminate RuntimeError raised by asyncio.all_tasks() (

needs backport to 3.8

needs backport to 3.8

bpo-36607: Eliminate RuntimeError raised by asyncio.all_tasks() (

: Eliminate RuntimeError raised by asyncio.all_tasks() (

https://gist.github.com/nickdavies/4a37c6cd9dcc7041fddd2d2a81cee383

For reference we solved this in our backported version with this hack: https://gist.github.com/nickdavies/4a37c6cd9dcc7041fddd2d2a81cee383

: Eliminate RuntimeError raised by asyncio.all_tasks() (

bpo-36607: Eliminate RuntimeError raised by asyncio.all_tasks() (

asyncio.all_tasks() crashes if asyncio is used in multiple threads #80788