]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46752: Slight improvements to TaskGroup API (GH-31398)
authorGuido van Rossum <guido@python.org>
Fri, 18 Feb 2022 05:30:44 +0000 (21:30 -0800)
committerGitHub <noreply@github.com>
Fri, 18 Feb 2022 05:30:44 +0000 (21:30 -0800)
commitd85121660ea50bbe8fbd31797aa6e4afe0850388
tree2c1ed1fe5d1bf4c1d285443320e4e1a2d415a704
parent2a38e1ab65cb28af3babda17f6ad3f8e514a7455
bpo-46752: Slight improvements to TaskGroup API (GH-31398)

* Remove task group names (for now)

We're not sure that they are needed, and once in the code
we would never be able to get rid of them.

Yury wrote:

> Ideally, there should be a way for someone to build a "trace"
> of taskgroups/task leading to the current running task.
> We could do that using contextvars, but I'm not sure we should
> do that in 3.11.

* Pass optional name on to task in create_task()

* Remove a bunch of unused stuff
Lib/asyncio/taskgroups.py
Lib/test/test_asyncio/test_taskgroups.py