Skip to content
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 stop_dispatching to stop_managing in Dispatcher #115

Merged
merged 1 commit into from
Mar 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/frequenz/dispatch/_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ async def start_managing(

You can await the `Dispatcher` instance to block until all types
registered with `start_managing()` are stopped using
`stop_dispatching()`
`stop_managing()`

"Merging" means that when multiple dispatches are active at the same time,
the intervals are merged into one.
Expand Down Expand Up @@ -330,7 +330,7 @@ def id_identity(dispatch: Dispatch) -> int:
self._actor_dispatchers[dispatch_type] = dispatcher
dispatcher.start()

async def stop_dispatching(self, dispatch_type: str) -> None:
async def stop_managing(self, dispatch_type: str) -> None:
"""Stop managing actors for a given dispatch type.

Args:
Expand Down
Loading