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 shutdownGracefully to triggerGracefulShutdown on the ServiceGroup #142

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

FranzBusch
Copy link
Contributor

Motivation

The current naming of shutdownGracefully() on the ServiceGroup caused some confusion since callers had to await the call due the ServiceGroup being an actor. This lead users to believe that the method waited until the graceful shutdown was completed; however, the method only triggered the shutdown and exited.

Modification

This PR renames ServiceGroup/shutdownGracefully() to ServiceGroup/triggerGracefulShtudown().

Result

Less confusion around the behaviour of triggering a graceful shutdown on the ServiceGroup.

…iceGroup`

# Motivation
The current naming of `shutdownGracefully()` on the `ServiceGroup` caused some confusion since callers had to `await` the call due the `ServiceGroup` being an `actor`. This lead users to believe that the method waited until the graceful shutdown was completed; however, the method only triggered the shutdown and exited.

# Modification
This PR renames `ServiceGroup/shutdownGracefully()` to `ServiceGroup/triggerGracefulShtudown()`.

# Result
Less confusion around the behaviour of triggering a graceful shutdown on the `ServiceGroup`.
Copy link
Member

@fabianfett fabianfett left a comment

Choose a reason for hiding this comment

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

Love it!

@FranzBusch FranzBusch merged commit 4eaaf07 into main Jun 1, 2023
@FranzBusch FranzBusch deleted the fb-trigger-graceful branch June 1, 2023 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants