-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename gather_with_concurrency
to gather_with_limited_concurrency
#102241
Conversation
Hey there @esev, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
Hey there @bachya, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
Hey there @bdraco, @prystupa, @joshs85, @marciogranzotto, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
@emontnemery you need to update the test as it calls the renamed method directly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for Wemo.
@@ -171,7 +171,7 @@ def protected_loop_func(*args: _P.args, **kwargs: _P.kwargs) -> _R: | |||
return protected_loop_func | |||
|
|||
|
|||
async def gather_with_concurrency( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its possible a custom component is also using this. Maybe make gather_with_concurrency = gather_with_limited_concurrency
below and remove in 6 moths?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any custom integrations using this util?
I've seen modified version of the bond integration in the wild.. not sure if we need to be concerned about that though |
I checked HACS, and there's no integration published there calling it. I don't think we need to worry about old modified versions of a core integration floating around. |
Ok. 👍 |
Proposed change
Rename
gather_with_concurrency
togather_with_limited_concurrency
Rationale
asyncio.gather
executes awaitables concurrently, the point ofgather_with_concurrency
is to limit the concurrencyType of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: