You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the documentation be slightly adjusted to rule out the (possible) implication that asyncio.TaskGroup is a drop-in replacement / better alternative to asyncio.gather(). Both have their idiomatic uses cases, and asyncio.gather() works well for tasks that do not schedule tasks themselves, especially when the caller needs to consume their result as soon as possible (i.e.
zware
changed the title
[3.11] The documentation about asyncio.TaskGroup might portray it as a replacement for asyncio.gather
The documentation about asyncio.TaskGroup might portray it as a replacement for asyncio.gather
Oct 25, 2022
I am not sure that we to explicitly say this, it depends on the user how they want to use it. For most part asyncio.TaskGroup is much better than gather.
Uh oh!
There was an error while loading. Please reload this page.
Documentation
I think the documentation be slightly adjusted to rule out the (possible) implication that asyncio.TaskGroup is a drop-in replacement / better alternative to asyncio.gather(). Both have their idiomatic uses cases, and asyncio.gather() works well for tasks that do not schedule tasks themselves, especially when the caller needs to consume their result as soon as possible (i.e.
)
I have a branch implementing the proposed changed ready to be PR-ed
Linked PRs
The text was updated successfully, but these errors were encountered: