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

Add convenience init to the group #154

Merged
merged 1 commit into from
Aug 23, 2023
Merged

Add convenience init to the group #154

merged 1 commit into from
Aug 23, 2023

Conversation

FranzBusch
Copy link
Contributor

Motivation

Right now creating a ServiceGroup always requires creating a ServiceGroupConfiguration. This is making the barrier to use the group higher than needed for the 99% use-case.

Modification

This PR adds a new init on the ServiceGroup that takes an array of services, graceful shutdown & cancellation signals and the logger.

Result

Easier use of the service group for the 99% use-case.

# Motivation
Right now creating a `ServiceGroup` always requires creating a `ServiceGroupConfiguration`. This is making the barrier to use the group higher than needed for the 99% use-case.

# Modification
This PR adds a new init on the `ServiceGroup` that takes an array of services, graceful shutdown & cancellation signals and the logger.

# Result
Easier use of the service group for the 99% use-case.
@FranzBusch FranzBusch force-pushed the fb-conveniecne-init branch from 74e38ad to 3cb14e3 Compare August 23, 2023 15:12
@FranzBusch FranzBusch merged commit 2dac25d into main Aug 23, 2023
@FranzBusch FranzBusch deleted the fb-conveniecne-init branch August 23, 2023 15:26
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.

2 participants